Package io.vavr.collection
Enum Class Multimap.ContainerType
- All Implemented Interfaces:
Serializable
,Comparable<Multimap.ContainerType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction
<Traversable<?>, Object, Traversable<?>> private final Supplier
<Collection<?>> private final BiFunction
<Traversable<?>, Object, Traversable<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ContainerType
(BiFunction<Traversable<?>, Object, Traversable<?>> add, BiFunction<Traversable<?>, Object, Traversable<?>> remove, Supplier<Collection<?>> instantiate) -
Method Summary
Modifier and TypeMethodDescription(package private) <T> Traversable
<T> add
(Traversable<?> container, T elem) (package private) <T> Collection
<T> (package private) <T> Traversable
<T> remove
(Traversable<?> container, T elem) static Multimap.ContainerType
Returns the enum constant of this class with the specified name.static Multimap.ContainerType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SET
-
SORTED_SET
-
SEQ
-
-
Field Details
-
add
-
remove
-
instantiate
-
-
Constructor Details
-
ContainerType
private ContainerType(BiFunction<Traversable<?>, Object, Traversable<?>> add, BiFunction<Traversable<?>, Object, Traversable<?>> remove, Supplier<Collection<?>> instantiate)
-
-
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
-
add
-
remove
-
instantiate
-