@NotThreadSafe public final class UnmodifiableLongSet extends AbstractUnmodifiableLongCollection implements com.gs.collections.api.set.primitive.MutableLongSet
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.set.primitive.MutableLongSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableLongSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.LongSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static UnmodifiableLongSet |
of(com.gs.collections.api.set.primitive.MutableLongSet set)
This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.
|
com.gs.collections.api.set.primitive.MutableLongSet |
reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
com.gs.collections.api.set.primitive.MutableLongSet |
select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableLongSet |
toImmutable()
Returns an immutable copy of this set.
|
UnmodifiableLongSet |
with(long element) |
UnmodifiableLongSet |
withAll(com.gs.collections.api.LongIterable elements) |
UnmodifiableLongSet |
without(long element) |
UnmodifiableLongSet |
withoutAll(com.gs.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, getLongCollection, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static UnmodifiableLongSet of(com.gs.collections.api.set.primitive.MutableLongSet set)
public UnmodifiableLongSet with(long element)
with in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwith in interface com.gs.collections.api.set.primitive.MutableLongSetwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongSet without(long element)
without in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithout in interface com.gs.collections.api.set.primitive.MutableLongSetwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongSet withAll(com.gs.collections.api.LongIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableLongSetwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongSet withoutAll(com.gs.collections.api.LongIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableLongSetwithoutAll in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableLongCollectionselect in interface com.gs.collections.api.LongIterableselect in interface com.gs.collections.api.set.primitive.LongSetselect in interface com.gs.collections.api.set.primitive.MutableLongSetselect in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableLongCollectionreject in interface com.gs.collections.api.LongIterablereject in interface com.gs.collections.api.set.primitive.LongSetreject in interface com.gs.collections.api.set.primitive.MutableLongSetreject in class AbstractUnmodifiableLongCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableLongCollectioncollect in interface com.gs.collections.api.LongIterablecollect in interface com.gs.collections.api.set.primitive.LongSetcollect in interface com.gs.collections.api.set.primitive.MutableLongSetcollect in class AbstractUnmodifiableLongCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.LongSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.LongSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.LongSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.LongSethashCode in class java.lang.Objectpublic com.gs.collections.api.set.primitive.MutableLongSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableLongSetasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.set.primitive.MutableLongSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableLongSetasSynchronized in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.set.primitive.LongSet freeze()
com.gs.collections.api.set.primitive.MutableLongSetfreeze in interface com.gs.collections.api.set.primitive.LongSetfreeze in interface com.gs.collections.api.set.primitive.MutableLongSetpublic com.gs.collections.api.set.primitive.ImmutableLongSet toImmutable()
com.gs.collections.api.set.primitive.MutableLongSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface com.gs.collections.api.set.primitive.LongSettoImmutable in interface com.gs.collections.api.set.primitive.MutableLongSettoImmutable in class AbstractUnmodifiableLongCollection