Documentation of 'cc.redberry.core.indices.SimpleIndicesBuilder' Java class
SimpleIndicesBuilder
cc.redberry.core.indices

Class SimpleIndicesBuilder



  • public final class SimpleIndicesBuilder
    extends java.lang.Object
    Builder of simple indices. Constructs simple indices (correctly handling possible symmetries) by sequential append of other indices.
    Since:
    1.0
    • 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 resulting SimpleIndices.
        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

Ads help maintain this website.