Package org.jxmpp.jid.parts
Class Part
- java.lang.Object
-
- org.jxmpp.jid.parts.Part
-
- All Implemented Interfaces:
Serializable
,CharSequence
- Direct Known Subclasses:
Domainpart
,Localpart
,Resourcepart
public abstract class Part extends Object implements CharSequence, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
assertNotLongerThan1023BytesOrEmpty(String string)
char
charAt(int index)
boolean
equals(Object other)
int
hashCode()
String
intern()
Returns the canonical String representation of this Part.int
length()
CharSequence
subSequence(int start, int end)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
length
public final int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public final char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public final CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
toString
public final String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
assertNotLongerThan1023BytesOrEmpty
protected static void assertNotLongerThan1023BytesOrEmpty(String string) throws XmppStringprepException
- Throws:
XmppStringprepException
-
intern
public final String intern()
Returns the canonical String representation of this Part. SeeString.intern()
for details.- Returns:
- the canonical String representation.
-
-