Class TypeSelector

java.lang.Object
io.guise.framework.platform.web.css.TypeSelector
All Implemented Interfaces:
SimpleSelector, Comparable<TypeSelector>

public class TypeSelector extends Object implements SimpleSelector, Comparable<TypeSelector>
A type simple selector. This implementation represents the universal selector by an instance of a type selector with the type "*".
Author:
Garret Wilson
  • Constructor Details

    • TypeSelector

      public TypeSelector(String typeName)
      Type name constructor.
      Parameters:
      typeName - The name of the type to be selected.
      Throws:
      NullPointerException - if the given type name is null.
  • Method Details

    • getTypeName

      public String getTypeName()
      Returns:
      The type to be selected.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(TypeSelector object)

      This implementation compares type names. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

      Specified by:
      compareTo in interface Comparable<TypeSelector>