public class SimpleName extends Object implements Name, Serializable
/
separators, and simple quoting rules. This class
is designed to perform better and have lower overhead than CompoundName
.Constructor and Description |
---|
SimpleName() |
SimpleName(Collection<String> segments) |
SimpleName(Enumeration<String> enumeration) |
SimpleName(Name name) |
SimpleName(String name) |
Modifier and Type | Method and Description |
---|---|
SimpleName |
add(int pos,
String comp) |
SimpleName |
add(String comp) |
SimpleName |
addAll(int pos,
Name name) |
SimpleName |
addAll(Name suffix) |
SimpleName |
clone() |
int |
compareTo(Object obj) |
int |
compareTo(SimpleName simpleName) |
boolean |
endsWith(Name name) |
boolean |
equals(Object obj) |
boolean |
equals(SimpleName simpleName) |
String |
get(int pos) |
Enumeration<String> |
getAll() |
SimpleName |
getPrefix(int pos) |
Collection<String> |
getRange(int start,
int end) |
SimpleName |
getSuffix(int pos) |
int |
hashCode() |
boolean |
isEmpty() |
static SimpleName |
of(Name name) |
String |
remove(int pos) |
int |
size() |
boolean |
startsWith(Name name) |
String |
toString() |
public SimpleName()
public SimpleName(String name) throws InvalidNameException
InvalidNameException
public SimpleName(Collection<String> segments)
public SimpleName(Name name)
public SimpleName(Enumeration<String> enumeration)
public int compareTo(Object obj)
compareTo
in interface Comparable<Object>
compareTo
in interface Name
public int compareTo(SimpleName simpleName)
public boolean equals(SimpleName simpleName)
public Enumeration<String> getAll()
public Collection<String> getRange(int start, int end)
public SimpleName getPrefix(int pos)
public SimpleName getSuffix(int pos)
public boolean startsWith(Name name)
startsWith
in interface Name
public SimpleName addAll(Name suffix)
public SimpleName addAll(int pos, Name name)
public SimpleName add(String comp)
public SimpleName add(int pos, String comp)
public SimpleName clone()
public static SimpleName of(Name name)
Copyright © 2019 JBoss by Red Hat. All rights reserved.