java.io.Serializable, MutableLongCollection, LongIterable, PrimitiveIterable, LongSet, MutableLongSetpublic class UnmodifiableLongSet extends AbstractUnmodifiableLongCollection implements MutableLongSet
| Constructor | Description |
|---|---|
UnmodifiableLongSet(MutableLongSet set) |
| Modifier and Type | Method | Description |
|---|---|---|
MutableLongSet |
asSynchronized() |
|
MutableLongSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(LongToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
equals(java.lang.Object otherSet) |
Follows the same general contract as
Set.equals(Object). |
LongSet |
freeze() |
Returns a frozen copy of this set.
|
int |
hashCode() |
Follows the same general contract as
Set.hashCode(). |
MutableLongSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableLongSet |
of(MutableLongSet set) |
This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.
|
MutableLongSet |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
MutableLongSet |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
ImmutableLongSet |
toImmutable() |
Returns an immutable copy of this set.
|
UnmodifiableLongSet |
with(long element) |
|
UnmodifiableLongSet |
withAll(LongIterable elements) |
|
UnmodifiableLongSet |
without(long element) |
|
UnmodifiableLongSet |
withoutAll(LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableLongSet(MutableLongSet set)
public static UnmodifiableLongSet of(MutableLongSet set)
public UnmodifiableLongSet with(long element)
with in interface MutableLongCollectionwith in interface MutableLongSetwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongSet without(long element)
without in interface MutableLongCollectionwithout in interface MutableLongSetwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongSet withAll(LongIterable elements)
withAll in interface MutableLongCollectionwithAll in interface MutableLongSetwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongSet withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionwithoutAll in interface MutableLongSetwithoutAll in class AbstractUnmodifiableLongCollectionpublic MutableLongSet select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongSetselect in interface MutableLongCollectionselect in interface MutableLongSetselect in class AbstractUnmodifiableLongCollectionpublic MutableLongSet reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongSetreject in interface MutableLongCollectionreject in interface MutableLongSetreject in class AbstractUnmodifiableLongCollectionpublic <V> MutableSet<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongSetcollect in interface MutableLongCollectioncollect in interface MutableLongSetcollect in class AbstractUnmodifiableLongCollectionpublic boolean equals(java.lang.Object otherSet)
LongSetSet.equals(Object).public int hashCode()
LongSetSet.hashCode().public MutableLongSet asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionasUnmodifiable in interface MutableLongSetasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic MutableLongSet asSynchronized()
asSynchronized in interface MutableLongCollectionasSynchronized in interface MutableLongSetasSynchronized in class AbstractUnmodifiableLongCollectionpublic LongSet freeze()
MutableLongSetfreeze in interface LongSetfreeze in interface MutableLongSetpublic ImmutableLongSet toImmutable()
MutableLongSettoImmutable in interface LongSettoImmutable in interface MutableLongCollectiontoImmutable in interface MutableLongSettoImmutable in class AbstractUnmodifiableLongCollectionpublic MutableLongSet newEmpty()
MutableLongSetnewEmpty in interface MutableLongCollectionnewEmpty in interface MutableLongSetCopyright © 2004–2020. All rights reserved.