Enum MultisetNavigationTester.SubMultisetSpec
- java.lang.Object
-
- java.lang.Enum<MultisetNavigationTester.SubMultisetSpec>
-
- com.google.common.collect.testing.google.MultisetNavigationTester.SubMultisetSpec
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MultisetNavigationTester.SubMultisetSpec>
- Enclosing class:
- MultisetNavigationTester<E>
private static enum MultisetNavigationTester.SubMultisetSpec extends java.lang.Enum<MultisetNavigationTester.SubMultisetSpec>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HEAD_CLOSED
HEAD_OPEN
TAIL_CLOSED
TAIL_OPEN
-
Constructor Summary
Constructors Modifier Constructor Description private
SubMultisetSpec()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract <E> java.util.List<Multiset.Entry<E>>
expectedEntries(int targetEntry, java.util.List<Multiset.Entry<E>> entries)
(package private) abstract <E> SortedMultiset<E>
subMultiset(SortedMultiset<E> multiset, java.util.List<Multiset.Entry<E>> entries, int targetEntry)
static MultisetNavigationTester.SubMultisetSpec
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MultisetNavigationTester.SubMultisetSpec[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TAIL_CLOSED
public static final MultisetNavigationTester.SubMultisetSpec TAIL_CLOSED
-
TAIL_OPEN
public static final MultisetNavigationTester.SubMultisetSpec TAIL_OPEN
-
HEAD_CLOSED
public static final MultisetNavigationTester.SubMultisetSpec HEAD_CLOSED
-
HEAD_OPEN
public static final MultisetNavigationTester.SubMultisetSpec HEAD_OPEN
-
-
Method Detail
-
values
public static MultisetNavigationTester.SubMultisetSpec[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MultisetNavigationTester.SubMultisetSpec c : MultisetNavigationTester.SubMultisetSpec.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultisetNavigationTester.SubMultisetSpec valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
expectedEntries
abstract <E> java.util.List<Multiset.Entry<E>> expectedEntries(int targetEntry, java.util.List<Multiset.Entry<E>> entries)
-
subMultiset
abstract <E> SortedMultiset<E> subMultiset(SortedMultiset<E> multiset, java.util.List<Multiset.Entry<E>> entries, int targetEntry)
-
-