Class Layer


  • public class Layer
    extends java.lang.Object
    A Layer represents a set of slices (names of slice nodes) that will be used in a SlicedConstraint.
    • Method Detail

      • anyOf

        public static Layer anyOf​(java.lang.String... slices)
        Constructs a Layer without further constraints on its slices.
        Parameters:
        slices - the slice names
        Returns:
        a new lenient layer constraint
      • oneOf

        public static Layer oneOf​(java.lang.String... slices)
        Constructs a Layer whose slices must not depend on each other.
        Parameters:
        slices - the slice names
        Returns:
        a new strict layer constraint
      • contains

        public boolean contains​(java.lang.String slice)
      • denyDependenciesWithinLayer

        public boolean denyDependenciesWithinLayer()
      • getShortString

        public java.lang.String getShortString()
      • toString

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