Package se.kuseman.payloadbuilder.api
Class QualifiedName
java.lang.Object
se.kuseman.payloadbuilder.api.QualifiedName
Qualified name
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns true if this qualified names parts equals other parts ignoring caseExtends this qualified name with provided partextract(int from) Extracts a new qualified name from this instance with parts defined in from to last partextract(int from, int to) Extracts a new qualified name from this instance with parts defined in from togetAlias()Returns the aliss if any.getFirst()Get the first part in qualified namegetLast()Get the last part of the qualified namegetParts()inthashCode()static QualifiedNameConstuct a qualified name from provided object.static QualifiedNameConstruct a qualified name from provided partsPrepend this qualified name with provided partintsize()Returns size of this qualified nameReturns a dot delimited representation of this qualified name.Returns a new qualified name with all parts lower casedtoString()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
QualifiedName
-
-
Method Details
-
getParts
-
size
public int size()Returns size of this qualified name -
getAlias
Returns the aliss if any. An alias exist if there are more than one part in the name -
getLast
Get the last part of the qualified name -
getFirst
Get the first part in qualified name -
extract
Extracts a new qualified name from this instance with parts defined in from to -
extract
Extracts a new qualified name from this instance with parts defined in from to last part -
extend
Extends this qualified name with provided part -
prepend
Prepend this qualified name with provided part -
toLowerCase
Returns a new qualified name with all parts lower cased -
equalsIgnoreCase
Returns true if this qualified names parts equals other parts ignoring case -
hashCode
public int hashCode() -
equals
-
toString
-
toDotDelimited
Returns a dot delimited representation of this qualified name. NOTE! This won't quote needed parts etc. -
of
Construct a qualified name from provided parts -
of
Constuct a qualified name from provided object. If its a collection then parts is constructed from their string representations
-