java.lang.Object
de.eldoria.schematicbrush.brush.config.util.Nameable
Direct Known Subclasses:
BaseModifier

public class Nameable extends Object
Represents a named key.
  • Constructor Details

    • Nameable

      public Nameable(String name)
      Create a new nameable
      Parameters:
      name - name
  • Method Details

    • of

      public static Nameable of(String name)
      Creates a new nameable with the name
      Parameters:
      name - name of nameable
      Returns:
      new nameable instance
    • name

      public String name()
      name of the nameable
      Returns:
      name
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object