protected <K> MutableSet<K> newEmptySameSize() { return UnifiedSet.newSet(this.size()); }
protected <K> MutableSet<K> newEmptySameSize() { return UnifiedSet.newSet(this.size()); }
@Override public MutableLongSet collectLong(LongFunction<? super T> longFunction) { MutableLongSet result = new LongHashSet(this.size()); this.forEach(new CollectLongProcedure<>(longFunction, result)); return result; }
@Override public MutableCharSet collectChar(CharFunction<? super T> charFunction) { MutableCharSet result = new CharHashSet(this.size()); this.forEach(new CollectCharProcedure<>(charFunction, result)); return result; }
@Override public MutableDoubleSet collectDouble(DoubleFunction<? super T> doubleFunction) { MutableDoubleSet result = new DoubleHashSet(this.size()); this.forEach(new CollectDoubleProcedure<>(doubleFunction, result)); return result; }
@Override public MutableShortSet collectShort(ShortFunction<? super T> shortFunction) { MutableShortSet result = new ShortHashSet(this.size()); this.forEach(new CollectShortProcedure<>(shortFunction, result)); return result; }
@Override public MutableDoubleSet collectDouble(DoubleFunction<? super T> doubleFunction) { MutableDoubleSet result = new DoubleHashSet(this.size()); this.forEach(new CollectDoubleProcedure<>(doubleFunction, result)); return result; }
@Override public MutableLongSet collectLong(LongFunction<? super T> longFunction) { MutableLongSet result = new LongHashSet(this.size()); this.forEach(new CollectLongProcedure<>(longFunction, result)); return result; }
@Override public MutableShortSet collectShort(ShortFunction<? super T> shortFunction) { MutableShortSet result = new ShortHashSet(this.size()); this.forEach(new CollectShortProcedure<>(shortFunction, result)); return result; }
@Override public MutableIntSet collectInt(IntFunction<? super T> intFunction) { MutableIntSet result = new IntHashSet(this.size()); this.forEach(new CollectIntProcedure<>(intFunction, result)); return result; }
@Override public MutableCharSet collectChar(CharFunction<? super T> charFunction) { MutableCharSet result = new CharHashSet(this.size()); this.forEach(new CollectCharProcedure<>(charFunction, result)); return result; }
@Override public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) { MutableFloatSet result = new FloatHashSet(this.size()); this.forEach(new CollectFloatProcedure<>(floatFunction, result)); return result; }
@Override public MutableIntSet collectInt(IntFunction<? super T> intFunction) { MutableIntSet result = new IntHashSet(this.size()); this.forEach(new CollectIntProcedure<>(intFunction, result)); return result; }
@Override public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) { MutableFloatSet result = new FloatHashSet(this.size()); this.forEach(new CollectFloatProcedure<>(floatFunction, result)); return result; }
protected <K> MutableSet<K> newEmptySameSize() { return UnifiedSet.newSet(this.size()); }
@Override public MutableLongSet collectLong(LongFunction<? super T> longFunction) { MutableLongSet result = new LongHashSet(this.size()); this.forEach(new CollectLongProcedure<>(longFunction, result)); return result; }
@Override public MutableShortSet collectShort(ShortFunction<? super T> shortFunction) { MutableShortSet result = new ShortHashSet(this.size()); this.forEach(new CollectShortProcedure<>(shortFunction, result)); return result; }
@Override public MutableIntSet collectInt(IntFunction<? super T> intFunction) { MutableIntSet result = new IntHashSet(this.size()); this.forEach(new CollectIntProcedure<>(intFunction, result)); return result; }
@Override public MutableCharSet collectChar(CharFunction<? super T> charFunction) { MutableCharSet result = new CharHashSet(this.size()); this.forEach(new CollectCharProcedure<>(charFunction, result)); return result; }
@Override public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) { MutableFloatSet result = new FloatHashSet(this.size()); this.forEach(new CollectFloatProcedure<>(floatFunction, result)); return result; }