@Override public MutableBooleanSet collectBoolean(BooleanFunction<? super T> booleanFunction) { BooleanHashSet result = new BooleanHashSet(); this.forEach(new CollectBooleanProcedure<>(booleanFunction, result)); return result; }
@Override public <P> PartitionMutableSet<T> partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) { PartitionMutableSet<T> partitionUnifiedSet = new PartitionUnifiedSet<>(); this.forEach(new PartitionPredicate2Procedure<>(predicate, parameter, partitionUnifiedSet)); return partitionUnifiedSet; }
@Override public MutableBooleanSet collectBoolean(BooleanFunction<? super T> booleanFunction) { BooleanHashSet result = new BooleanHashSet(); this.forEach(new CollectBooleanProcedure<>(booleanFunction, result)); return result; }
@Override public PartitionMutableSet<T> partition(Predicate<? super T> predicate) { PartitionMutableSet<T> partitionUnifiedSet = new PartitionUnifiedSet<>(); this.forEach(new PartitionProcedure<>(predicate, partitionUnifiedSet)); return partitionUnifiedSet; }
@Override public <P> PartitionMutableSet<T> partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) { PartitionMutableSet<T> partitionUnifiedSet = new PartitionUnifiedSet<>(); this.forEach(new PartitionPredicate2Procedure<>(predicate, parameter, partitionUnifiedSet)); return partitionUnifiedSet; }
@Override public PartitionMutableSet<T> partition(Predicate<? super T> predicate) { PartitionMutableSet<T> partitionUnifiedSet = new PartitionUnifiedSet<>(); this.forEach(new PartitionProcedure<>(predicate, partitionUnifiedSet)); return partitionUnifiedSet; }
@Override public <S> MutableSet<S> selectInstancesOf(Class<S> clazz) { MutableSet<S> result = UnifiedSet.newSet(); this.forEach(new SelectInstancesOfProcedure<>(clazz, result)); return result; }
@Override public <S> MutableSet<S> selectInstancesOf(Class<S> clazz) { MutableSet<S> result = UnifiedSet.newSet(); this.forEach(new SelectInstancesOfProcedure<>(clazz, result)); return result; }
@Override public MutableShortSet collectShort(ShortFunction<? super T> shortFunction) { ShortHashSet result = new ShortHashSet(this.size()); this.forEach(new CollectShortProcedure<>(shortFunction, result)); return result; }
@Override public MutableByteSet collectByte(ByteFunction<? super T> byteFunction) { ByteHashSet result = new ByteHashSet(this.size()); this.forEach(new CollectByteProcedure<>(byteFunction, result)); return result; }
@Override public MutableCharSet collectChar(CharFunction<? super T> charFunction) { CharHashSet result = new CharHashSet(this.size()); this.forEach(new CollectCharProcedure<>(charFunction, result)); return result; }
@Override public MutableIntSet collectInt(IntFunction<? super T> intFunction) { IntHashSet result = new IntHashSet(this.size()); this.forEach(new CollectIntProcedure<>(intFunction, result)); return result; }
@Override public MutableCharSet collectChar(CharFunction<? super T> charFunction) { CharHashSet result = new CharHashSet(this.size()); this.forEach(new CollectCharProcedure<>(charFunction, result)); return result; }
@Override public MutableIntSet collectInt(IntFunction<? super T> intFunction) { IntHashSet result = new IntHashSet(this.size()); this.forEach(new CollectIntProcedure<>(intFunction, result)); return result; }
@Override public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) { FloatHashSet result = new FloatHashSet(this.size()); this.forEach(new CollectFloatProcedure<>(floatFunction, result)); return result; }
@Override public MutableDoubleSet collectDouble(DoubleFunction<? super T> doubleFunction) { DoubleHashSet result = new DoubleHashSet(this.size()); this.forEach(new CollectDoubleProcedure<>(doubleFunction, result)); return result; }
@Override public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) { FloatHashSet result = new FloatHashSet(this.size()); this.forEach(new CollectFloatProcedure<>(floatFunction, result)); return result; }
@Override public MutableShortSet collectShort(ShortFunction<? super T> shortFunction) { ShortHashSet result = new ShortHashSet(this.size()); this.forEach(new CollectShortProcedure<>(shortFunction, result)); return result; }
@Override public MutableDoubleSet collectDouble(DoubleFunction<? super T> doubleFunction) { DoubleHashSet result = new DoubleHashSet(this.size()); this.forEach(new CollectDoubleProcedure<>(doubleFunction, result)); return result; }
@Override public MutableLongSet collectLong(LongFunction<? super T> longFunction) { LongHashSet result = new LongHashSet(this.size()); this.forEach(new CollectLongProcedure<>(longFunction, result)); return result; }