Package com.google.common.collect
Enum TreeMultiset.Aggregate
- java.lang.Object
-
- java.lang.Enum<TreeMultiset.Aggregate>
-
- com.google.common.collect.TreeMultiset.Aggregate
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TreeMultiset.Aggregate>
- Enclosing class:
- TreeMultiset<E>
private static enum TreeMultiset.Aggregate extends java.lang.Enum<TreeMultiset.Aggregate>
A function which can be summed across a subtree.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Aggregate()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract int
nodeAggregate(TreeMultiset.AvlNode<?> node)
(package private) abstract long
treeAggregate(TreeMultiset.AvlNode<?> root)
static TreeMultiset.Aggregate
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TreeMultiset.Aggregate[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIZE
public static final TreeMultiset.Aggregate SIZE
-
DISTINCT
public static final TreeMultiset.Aggregate DISTINCT
-
-
Method Detail
-
values
public static TreeMultiset.Aggregate[] 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 (TreeMultiset.Aggregate c : TreeMultiset.Aggregate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TreeMultiset.Aggregate 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
-
nodeAggregate
abstract int nodeAggregate(TreeMultiset.AvlNode<?> node)
-
treeAggregate
abstract long treeAggregate(@CheckForNull TreeMultiset.AvlNode<?> root)
-
-