MutableByteSet.
This is for scenarios where optimization is not a consideration and therefore no further methods will be optimized.
This file was automatically generated from template file boxedPrimitiveSet.stg.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final MutableByteSet |
| Access | Constructor and Description |
|---|---|
| public |
| delegate | back to summary |
|---|---|
| private final MutableByteSet delegate | |
| BoxedMutableByteSet | back to summary |
|---|---|
| public BoxedMutableByteSet(MutableByteSet delegate) | |
| add | back to summary |
|---|---|
| public boolean add(Byte item) Overrides org. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| asParallel | back to summary |
|---|---|
| public ParallelUnsortedSetIterable Implements org. Doc from org. Returns a parallel iterable of this SetIterable.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object object) Overrides org. Implements org. Doc from org. Returns true if the iterable has an element which responds true to element.equals(object).
| |
| each | back to summary |
|---|---|
| public void each(Procedure<? super Byte> procedure) Implements org. Doc from org. The procedure is executed for each element in the iterable. Example using a Java 8 lambda expression: people.each(person -> LOGGER.info(person.getName()));This method is a variant of InternalIterable#forEach(Procedure)
that has a signature conflict with Iterable#forEach(java..
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| getFirst | back to summary |
|---|---|
| public Byte getFirst() Implements org. Doc from org. Returns the first element of an iterable. In the case of a List it is the element at the first index. In the case of any other Collection, it is the first element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty. The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the first element could be any element from the Set.
| |
| getLast | back to summary |
|---|---|
| public Byte getLast() Implements org. Doc from org. Returns the last element of an iterable. In the case of a List it is the element at the last index. In the case of any other Collection, it is the last element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty. The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the last element could be any element from the Set.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object object) Overrides org. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element
| |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Returns the number of items in this iterable.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MutableByteIterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Byte |
| delegate | back to summary |
|---|---|
| private final MutableByteIterator delegate | |
| BoxedPrimitiveByteSetIterator | back to summary |
|---|---|
| private BoxedPrimitiveByteSetIterator(MutableByteIterator iterator) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Byte next() Implements java. Doc from java. Returns the next element in the iteration.
| |