Package mondrian.olap

Class Id.KeySegment

  • Enclosing class:
    Id

    public static class Id.KeySegment
    extends Id.Segment
    Identifier segment representing a key, possibly composite.
    • Constructor Detail

      • KeySegment

        public KeySegment​(Id.NameSegment... subSegments)
        Creates a KeySegment with one or more sub-segments.
        Parameters:
        subSegments - Array of sub-segments
      • KeySegment

        public KeySegment​(List<Id.NameSegment> subSegmentList)
        Creates a KeySegment a list of sub-segments.
        Parameters:
        subSegmentList - List of sub-segments
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public void toString​(StringBuilder buf)
        Description copied from class: Id.Segment
        Appends this segment to a StringBuilder.
        Specified by:
        toString in class Id.Segment
        Parameters:
        buf - String builder to write to
      • matches

        public boolean matches​(String name)
        Description copied from class: Id.Segment
        Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.
        Specified by:
        matches in class Id.Segment
        Parameters:
        name - Name to match
        Returns:
        Whether matches