private void validate() throws IllegalStateException {
      Set<DateComponentOrdering> orderings = Sets.newHashSet();
      if(preferred != null) {
        orderings.add(preferred.getOrdering());
      }
      for(DateTimeParser parser : otherParsers) {
        if(!orderings.add(parser.getOrdering())) {
          throw new IllegalStateException("DateComponentOrdering can only be used once in a DateTimeMultiParser." +
                  "[" + parser.getOrdering() + "]");
        }
      }
    }
private void validate() throws IllegalStateException {
      Set<DateComponentOrdering> orderings = Sets.newHashSet();
      if(preferred != null) {
        orderings.add(preferred.getOrdering());
      }
      for(DateTimeParser parser : otherParsers) {
        if(!orderings.add(parser.getOrdering())) {
          throw new IllegalStateException("DateComponentOrdering can only be used once in a DateTimeMultiParser." +
                  "[" + parser.getOrdering() + "]");
        }
      }
    }
private void validate() throws illegalstateexception { set<datecomponentordering> orderings = sets.newhashset(); if(preferred != null) { orderings.add(preferred.getordering()); } for(datetimeparser parser : otherparsers) { if(!orderings.add(parser.getordering())) { throw new illegalstateexception("datecomponentordering can only be used once in a datetimemultiparser." + "[" + parser.getordering() + "]"); } } }