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 voidassertNotLongerThan1023BytesOrEmpty(String string)charcharAt(int index)booleanequals(Object other)inthashCode()Stringintern()Returns the canonical String representation of this Part.intlength()CharSequencesubSequence(int start, int end)StringtoString()-
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:
lengthin interfaceCharSequence
-
charAt
public final char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public final CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
toString
public final String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin 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.
-
-