MutableLongCollection
, LongIterable
, PrimitiveIterable
, LongSet
, MutableLongSet
public final 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() . |
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, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, 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, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public UnmodifiableLongSet(MutableLongSet set)
public static UnmodifiableLongSet of(MutableLongSet set)
public UnmodifiableLongSet with(long element)
with
in interface MutableLongCollection
with
in interface MutableLongSet
with
in class AbstractUnmodifiableLongCollection
public UnmodifiableLongSet without(long element)
without
in interface MutableLongCollection
without
in interface MutableLongSet
without
in class AbstractUnmodifiableLongCollection
public UnmodifiableLongSet withAll(LongIterable elements)
withAll
in interface MutableLongCollection
withAll
in interface MutableLongSet
withAll
in class AbstractUnmodifiableLongCollection
public UnmodifiableLongSet withoutAll(LongIterable elements)
withoutAll
in interface MutableLongCollection
withoutAll
in interface MutableLongSet
withoutAll
in class AbstractUnmodifiableLongCollection
public MutableLongSet select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
select
in interface LongSet
select
in interface MutableLongCollection
select
in interface MutableLongSet
select
in class AbstractUnmodifiableLongCollection
public MutableLongSet reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface LongSet
reject
in interface MutableLongCollection
reject
in interface MutableLongSet
reject
in class AbstractUnmodifiableLongCollection
public <V> MutableSet<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface LongSet
collect
in interface MutableLongCollection
collect
in interface MutableLongSet
collect
in class AbstractUnmodifiableLongCollection
public boolean equals(java.lang.Object otherSet)
LongSet
Set.equals(Object)
.public int hashCode()
LongSet
Set.hashCode()
.public MutableLongSet asUnmodifiable()
asUnmodifiable
in interface MutableLongCollection
asUnmodifiable
in interface MutableLongSet
asUnmodifiable
in class AbstractUnmodifiableLongCollection
public MutableLongSet asSynchronized()
asSynchronized
in interface MutableLongCollection
asSynchronized
in interface MutableLongSet
asSynchronized
in class AbstractUnmodifiableLongCollection
public LongSet freeze()
MutableLongSet
freeze
in interface LongSet
freeze
in interface MutableLongSet
public ImmutableLongSet toImmutable()
MutableLongSet
toImmutable
in interface LongSet
toImmutable
in interface MutableLongCollection
toImmutable
in interface MutableLongSet
toImmutable
in class AbstractUnmodifiableLongCollection
Copyright © 2004–2017. All rights reserved.