266267268269270271272
return new ByteArrayList(); } public MutableByteSet toSet() { return new ByteHashSet(); }
311312313314315316317
return false; } public MutableByteSet keySet() { return UnmodifiableByteSet.of(new ByteHashSet()); }
272273274275276277278
317318319320321322323
238239240241242243244245246247248249250251252
return list; } public MutableByteSet toSet() { final MutableByteSet set = new ByteHashSet(); this.forEach(new ByteProcedure() { public void value(byte each) { set.add(each); } }); return set; }
858859860861862863864
return target; } public MutableByteSet collectByte(ByteFunction<? super T> byteFunction) { return this.collectByte(byteFunction, new ByteHashSet()); }
129130131132133134135
} public ImmutableByteSet select(BytePredicate predicate) { return predicate.accept(this.element) ? ByteHashSet.newSetWith(this.element).toImmutable() : new ByteHashSet().toImmutable(); }
134135136137138139140141
: new ByteHashSet().toImmutable(); } public ImmutableByteSet reject(BytePredicate predicate) { return predicate.accept(this.element) ? new ByteHashSet().toImmutable() : ByteHashSet.newSetWith(this.element).toImmutable(); }
152153154155156157158159160
return result; } public MutableByteSet collectByte(ByteFunction<? super T> byteFunction) { ByteHashSet result = new ByteHashSet(this.size()); this.forEach(new CollectByteProcedure<T>(byteFunction, result)); return result; }