Interface Formatter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>,​O>

  • Type Parameters:
    O - the object type to format
    All Superinterfaces:
    java.util.Comparator<O>, java.io.Serializable
    All Known Implementing Classes:
    GameObjectFormatter, MapSquareFormatter

    public interface Formatter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>,​O>
    extends java.util.Comparator<O>, java.io.Serializable
    Interface for formatting objects.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String toString​(O obj)
      Returns a string representation of an object.
      • Methods inherited from interface java.util.Comparator

        compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Method Detail

      • toString

        @NotNull
        @NotNull java.lang.String toString​(@NotNull
                                           O obj)
        Returns a string representation of an object.
        Parameters:
        obj - the object
        Returns:
        the string representation