Package org.wildfly.naming.client
Class SimpleName
java.lang.Object
org.wildfly.naming.client.SimpleName
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Object>,Name
A simple compound name which uses left-to-right parsing,
/ separators, and simple quoting rules. This class
is designed to perform better and have lower overhead than CompoundName.- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleName(String name) SimpleName(Collection<String> segments) SimpleName(Enumeration<String> enumeration) SimpleName(Name name) -
Method Summary
Modifier and TypeMethodDescriptionclone()intintcompareTo(SimpleName simpleName) booleanbooleanbooleanequals(SimpleName simpleName) get(int pos) getAll()getPrefix(int pos) getRange(int start, int end) getSuffix(int pos) inthashCode()booleanisEmpty()static SimpleNameremove(int pos) intsize()booleanstartsWith(Name name) toString()
-
Constructor Details
-
SimpleName
public SimpleName() -
SimpleName
- Throws:
InvalidNameException
-
SimpleName
-
SimpleName
-
SimpleName
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Object>- Specified by:
compareToin interfaceName
-
compareTo
-
equals
-
equals
-
hashCode
public int hashCode() -
size
public int size() -
isEmpty
public boolean isEmpty() -
getAll
-
toString
-
get
-
getRange
-
getPrefix
-
getSuffix
-
startsWith
- Specified by:
startsWithin interfaceName
-
endsWith
-
addAll
-
addAll
-
add
-
add
-
remove
-
clone
-
of
-