Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Constructor Detail

      • Part

        protected Part​(java.lang.String part)
    • Method Detail

      • length

        public final int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public final char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public final java.lang.CharSequence subSequence​(int start,
                                                        int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        public final java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • intern

        public final java.lang.String intern()
        Returns the canonical String representation of this Part. See String.intern() for details.
        Returns:
        the canonical String representation.