Enum Class CollectionMethods
- All Implemented Interfaces:
Serializable
,Comparable<CollectionMethods>
,Constable
,OptionalMethod
Values used to identify collection class methods for use with the
CollectionContract.supportsMethod(OptionalMethod)
method.- Since:
- 1.0
- Author:
- evanbergstrom
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe option al methodCollection.add(Object)
.The option al methodCollection.addAll(Collection)
.The option al methodList.addAll(int, Collection)
.The optional methodList.add(int, java.lang.Object)
.The option al methodSequencedCollection.addFirst(Object)
.The optional methodSequencedCollection.addLast(Object)
.The option al methodCollection.clear()
.The option al methodCollection.containsAll(Collection)
.The methodList.get(int)
.The methodSequencedCollection.getFirst()
.The methodSequencedCollection.getLast()
.The option al methodIterator.forEachRemaining(Consumer)
.The optional methodIterator.remove()
.The optional methodCollection.remove(Object)
.The optional methodCollection.removeAll(Collection)
.The optional methodList.remove(int)
.The option al methodSequencedCollection.removeFirst()
.The optional methodCollection.removeIf(Predicate)
.The option al methodSequencedCollection.removeLast()
.The option al methodList.replaceAll(UnaryOperator)
.The optional methodCollection.retainAll(Collection)
.The methodSequencedCollection.reversed()
.The optional methodList.set(int, E)
.The optional methodList.sort(java.util.Comparator<? super E>)
.The methodCollection.stream()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionMethods
Returns the enum constant of this class with the specified name.static CollectionMethods[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Add
The option al methodCollection.add(Object)
. -
AddAll
The option al methodCollection.addAll(Collection)
. -
AddAllAtIndex
The option al methodList.addAll(int, Collection)
. -
AddAtIndex
The optional methodList.add(int, java.lang.Object)
. -
AddFirst
The option al methodSequencedCollection.addFirst(Object)
. -
AddLast
The optional methodSequencedCollection.addLast(Object)
. -
Clear
The option al methodCollection.clear()
. -
ContainsAll
The option al methodCollection.containsAll(Collection)
. -
Get
The methodList.get(int)
. -
GetFirst
The methodSequencedCollection.getFirst()
. -
GetLast
The methodSequencedCollection.getLast()
. -
IteratorForEachRemaining
The option al methodIterator.forEachRemaining(Consumer)
. -
IteratorRemove
The optional methodIterator.remove()
. -
Remove
The optional methodCollection.remove(Object)
. -
RemoveAll
The optional methodCollection.removeAll(Collection)
. -
RemoveAtIndex
The optional methodList.remove(int)
. -
RemoveFirst
The option al methodSequencedCollection.removeFirst()
. -
RemoveIf
The optional methodCollection.removeIf(Predicate)
. -
RemoveLast
The option al methodSequencedCollection.removeLast()
. -
ReplaceAll
The option al methodList.replaceAll(UnaryOperator)
. -
RetainAll
The optional methodCollection.retainAll(Collection)
. -
Reversed
The methodSequencedCollection.reversed()
. -
Set
The optional methodList.set(int, E)
. -
Sort
The optional methodList.sort(java.util.Comparator<? super E>)
. -
Stream
The methodCollection.stream()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-