public static PersistentSearchRequestControl newControl(final boolean isCritical,final boolean changesOnly,final boolean returnECs,final Collection<PersistentSearchChangeType> changeTypes){
  Reject.ifNull(changeTypes);
  final Set<PersistentSearchChangeType> copyOfChangeTypes=EnumSet.noneOf(PersistentSearchChangeType.class);
  copyOfChangeTypes.addAll(changeTypes);
  return new PersistentSearchRequestControl(isCritical,changesOnly,returnECs,Collections.unmodifiableSet(copyOfChangeTypes));
}

public static PersistentSearchRequestControl newControl ( final boolean isCritical , final boolean changesOnly , final boolean returnECs , final Collection < PersistentSearchChangeType > changeTypes ) { Reject . ifNull ( changeTypes ) ; final Set < PersistentSearchChangeType > copyOfChangeTypes = EnumSet . noneOf ( PersistentSearchChangeType . class ) ; copyOfChangeTypes . addAll ( changeTypes ) ; return new PersistentSearchRequestControl ( isCritical , changesOnly , returnECs , Collections . unmodifiableSet ( copyOfChangeTypes ) ) ; }
creates a new persistent search request control .
