Package com.google.common.truth
Enum IterableSubject.ElementFactGrouping
- java.lang.Object
-
- java.lang.Enum<IterableSubject.ElementFactGrouping>
-
- com.google.common.truth.IterableSubject.ElementFactGrouping
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IterableSubject.ElementFactGrouping>
- Enclosing class:
- IterableSubject
static enum IterableSubject.ElementFactGrouping extends java.lang.Enum<IterableSubject.ElementFactGrouping>
Whether to output each missing/unexpected item as its ownFact
or to group all those items together into a singleFact
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_IN_ONE_FACT
FACT_PER_ELEMENT
-
Constructor Summary
Constructors Modifier Constructor Description private
ElementFactGrouping()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IterableSubject.ElementFactGrouping
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IterableSubject.ElementFactGrouping[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL_IN_ONE_FACT
public static final IterableSubject.ElementFactGrouping ALL_IN_ONE_FACT
-
FACT_PER_ELEMENT
public static final IterableSubject.ElementFactGrouping FACT_PER_ELEMENT
-
-
Method Detail
-
values
public static IterableSubject.ElementFactGrouping[] 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 (IterableSubject.ElementFactGrouping c : IterableSubject.ElementFactGrouping.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IterableSubject.ElementFactGrouping 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
-
-