Class Slices

    • Method Detail

      • iterator

        public java.util.Iterator<Slice> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Slice>
      • as

        public Slices as​(java.lang.String description)
      • namingSlices

        public Slices namingSlices​(java.lang.String pattern)
        Allows the naming of single slices, where back references to the matching pattern can be denoted by '$' followed by capturing group number.
        E.g. namingSlices("Slice $1") would name a slice matching '*..service.(*)..*' against 'com.some.company.service.hello.something' as 'Slice hello'.
        Parameters:
        pattern - The naming pattern, e.g. 'Slice $1'
        Returns:
        The same slices with adjusted naming for each single slice