Class StyledSegment<SEG,​S>

  • Type Parameters:
    SEG - the segment type
    S - the style type

    public final class StyledSegment<SEG,​S>
    extends java.lang.Object
    Essentially, an immutable Tuple2 that combines a segment object and a style object together.
    • Constructor Detail

      • StyledSegment

        public StyledSegment​(SEG segment,
                             S style)
    • Method Detail

      • getSegment

        public final SEG getSegment()
      • getStyle

        public final S getStyle()
      • toString

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object