Class PseudoElementDescriptor


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class PseudoElementDescriptor
    extends java.lang.Object
    Describes a pseudo element.
    Since:
    23
    • Constructor Detail

      • PseudoElementDescriptor

        public PseudoElementDescriptor​(PseudoElementDescriptor.PsuedoElementType type,
                                       int index)
        Created a pseudo-element descriptor object.
        Parameters:
        type - The pseudo element type (before, after, marker, etc).
        index - The index of the pseudo element (e.g. 1 for element:before(1)).
    • Method Detail

      • getIndex

        public int getIndex()
        Returns:
        Returns the index of the pseudo-element (e.g. 1 for element:before(1)).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()