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