public static class Id.KeySegment extends Id.Segment
Modifier and Type | Field and Description |
---|---|
List<Id.NameSegment> |
subSegmentList |
quoting
Constructor and Description |
---|
KeySegment(Id.NameSegment... subSegments)
Creates a KeySegment with one or more sub-segments.
|
KeySegment(List<Id.NameSegment> subSegmentList)
Creates a KeySegment a list of sub-segments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Id.NameSegment> |
getKeyParts() |
int |
hashCode() |
boolean |
matches(String name)
Returns whether this segment matches a given name according to
the rules of case-sensitivity and quoting.
|
void |
toString(StringBuilder buf)
Appends this segment to a StringBuilder.
|
getQuoting, toList, toString
public final List<Id.NameSegment> subSegmentList
public KeySegment(Id.NameSegment... subSegments)
subSegments
- Array of sub-segmentspublic KeySegment(List<Id.NameSegment> subSegmentList)
subSegmentList
- List of sub-segmentspublic void toString(StringBuilder buf)
Id.Segment
toString
in class Id.Segment
buf
- String builder to write topublic List<Id.NameSegment> getKeyParts()
getKeyParts
in class Id.Segment
public boolean matches(String name)
Id.Segment
matches
in class Id.Segment
name
- Name to matchCopyright © 2019 Hitachi Vantara. All rights reserved.