Class SubstanceSlices.ComponentStateFacet

  • Enclosing class:
    SubstanceSlices


    public static final class SubstanceSlices.ComponentStateFacet
    extends java.lang.Object
    Defines a single facet of core and custom ComponentStates. See Javadocs of the ComponentState class for more information on state facets.
    • Constructor Detail

      • ComponentStateFacet

        public ComponentStateFacet​(java.lang.String name,
                                   int value)
        Creates a new facet.
        Parameters:
        name - Facet name.
        value - Facet value. This is used in the matching algorithm described in the javadocs of ComponentState. The larger the value, the more importance is given to the specific facet.
    • Method Detail

      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object