Class IntDoubleOrderedMap.KeySet
- All Implemented Interfaces:
Serializable
,Iterable<Integer>
,Collection<Integer>
,Set<Integer>
,SortedSet<Integer>
- Enclosing class:
- IntDoubleOrderedMap
public final class IntDoubleOrderedMap.KeySet extends Object implements SortedSet<Integer>, Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeySet()
-
Method Summary
Modifier and Type Method Description boolean
add(Integer o)
Always throws an UnsupportedOperationExceptionboolean
addAll(Collection<? extends Integer> c)
Adds all elements of the given collection to this collection.void
clear()
Comparator<Integer>
comparator()
boolean
contains(Object o)
Delegates to the corresponding type-specific method.boolean
containsAll(Collection<?> c)
Checks whether this collection contains all elements from the given type-specific collection.boolean
equals(Object o)
Integer
first()
SortedSet<Integer>
headSet(Integer to)
boolean
isEmpty()
IntDoubleOrderedMap.KeyIterator
iterator()
Integer
last()
boolean
remove(Object ok)
Always throws an UnsupportedOperationExceptionboolean
removeAll(Collection<?> c)
Remove from this collection all elements in the given type-specific collection.boolean
retainAll(Collection<?> c)
Retains in this collection only elements from the given type-specific collection.int
size()
SortedSet<Integer>
subSet(Integer from, Integer to)
SortedSet<Integer>
tailSet(Integer from)
Object[]
toArray()
<T> T[]
toArray(T[] a)
int[]
toIntArray()
int[]
toIntArray(int[] a)
String
toString()
int
unwrap(IntDoubleOrderedMap.KeyIterator i, int[] array)
Unwraps an iterator into an array.int
unwrap(IntDoubleOrderedMap.KeyIterator i, int[] array, int offset, int max)
Unwraps an iterator into an array starting at a given offset for a given number of elements.int
unwrap(IntDoubleOrderedMap.KeyIterator i, Object[] array)
Unwraps an iterator into an array.int
unwrap(IntDoubleOrderedMap.KeyIterator i, Object[] array, int offset, int max)
Unwraps an iterator into an array starting at a given offset for a given number of elements.
-
Constructor Details
-
Method Details
-
iterator
-
size
-
clear
-
first
-
last
-
comparator
- Specified by:
comparator
in interfaceSortedSet<Integer>
-
tailSet
-
headSet
-
subSet
-
toArray
-
remove
Always throws an UnsupportedOperationException -
add
Always throws an UnsupportedOperationException -
contains
Delegates to the corresponding type-specific method. -
containsAll
Checks whether this collection contains all elements from the given type-specific collection.- Specified by:
containsAll
in interfaceCollection<Integer>
- Specified by:
containsAll
in interfaceSet<Integer>
- Parameters:
c
- a type-specific collection.- Returns:
true
if this collection contains all elements of the argument.
-
retainAll
Retains in this collection only elements from the given type-specific collection. -
removeAll
Remove from this collection all elements in the given type-specific collection. -
toArray
-
addAll
Adds all elements of the given collection to this collection. -
equals
-
unwrap
Unwraps an iterator into an array starting at a given offset for a given number of elements.This method iterates over the given type-specific iterator and stores the elements returned, up to a maximum of
length
, in the given array starting atoffset
. The number of actually unwrapped elements is returned (it may be less thanmax
if the iterator emits less thanmax
elements).- Parameters:
i
- a type-specific iterator.array
- an array to contain the output of the iterator.offset
- the first element of the array to be returned.max
- the maximum number of elements to unwrap.- Returns:
- the number of elements unwrapped.
-
unwrap
Unwraps an iterator into an array.This method iterates over the given type-specific iterator and stores the elements returned in the given array. The iteration will stop when the iterator has no more elements or when the end of the array has been reached.
- Parameters:
i
- a type-specific iterator.array
- an array to contain the output of the iterator.- Returns:
- the number of elements unwrapped.
-
toIntArray
-
toIntArray
-
unwrap
Unwraps an iterator into an array starting at a given offset for a given number of elements.This method iterates over the given type-specific iterator and stores the elements returned, up to a maximum of
length
, in the given array starting atoffset
. The number of actually unwrapped elements is returned (it may be less thanmax
if the iterator emits less thanmax
elements).- Parameters:
i
- a type-specific iterator.array
- an array to contain the output of the iterator.offset
- the first element of the array to be returned.max
- the maximum number of elements to unwrap.- Returns:
- the number of elements unwrapped.
-
unwrap
Unwraps an iterator into an array.This method iterates over the given type-specific iterator and stores the elements returned in the given array. The iteration will stop when the iterator has no more elements or when the end of the array has been reached.
- Parameters:
i
- a type-specific iterator.array
- an array to contain the output of the iterator.- Returns:
- the number of elements unwrapped.
-
isEmpty
-
toString
-