Class Entity

java.lang.Object
it.unimi.dsi.parser.Entity

public final class Entity
extends Object
An SGML character entity.
  • Field Details

    • name

      public final CharSequence name
      The name of this entity.
    • character

      public final char character
      The Unicode character corresponding to this entity.
  • Constructor Details

    • Entity

      public Entity​(CharSequence name, char character)
      Creates a new entity with the specified name and character.
      Parameters:
      name - the name of the new entity.
      character - its character value.
  • Method Details

    • toString

      public String toString()
      Returns the name of this entity.
      Overrides:
      toString in class Object
      Returns:
      the name of this entity.