cc.redberry.core.indices
Class SimpleIndicesBuilder
- java.lang.Object
-
- cc.redberry.core.indices.SimpleIndicesBuilder
-
public final class SimpleIndicesBuilder extends java.lang.ObjectBuilder of simple indices. Constructs simple indices (correctly handling possible symmetries) by sequential append of other indices.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description SimpleIndicesBuilder()Constructs empty builder.SimpleIndicesBuilder(int initialCapacity)Construct builder with specified initial capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SimpleIndicesBuilderappend(int... indices)Appends specified indices, represented as integer array to this.SimpleIndicesBuilderappend(SimpleIndices indices)Appends specified simple indices to this taking into account symmetries of passing indices.SimpleIndicesBuilderappendWithoutSymmetries(Indices indices)Appends specified indices.SimpleIndicesgetIndices()Returns resultingSimpleIndices.
-
-
-
Constructor Detail
-
SimpleIndicesBuilder
public SimpleIndicesBuilder(int initialCapacity)
Construct builder with specified initial capacity.- Parameters:
initialCapacity- initial capacity
-
SimpleIndicesBuilder
public SimpleIndicesBuilder()
Constructs empty builder.
-
-
Method Detail
-
append
public SimpleIndicesBuilder append(SimpleIndices indices)
Appends specified simple indices to this taking into account symmetries of passing indices.- Parameters:
indices- simple indices- Returns:
- this
-
append
public SimpleIndicesBuilder append(int... indices)
Appends specified indices, represented as integer array to this. The passing indices are considered to have no any symmetries.- Parameters:
indices- integer array of indices- Returns:
- this
-
appendWithoutSymmetries
public SimpleIndicesBuilder appendWithoutSymmetries(Indices indices)
Appends specified indices. The passing indices are considered to have no any symmetries.- Parameters:
indices- indices- Returns:
- this
-
getIndices
public SimpleIndices getIndices()
Returns resultingSimpleIndices.- Returns:
- resulting
SimpleIndices - Throws:
InconsistentIndicesException- if there was more then one same index (with same names, types and states)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG