Class GameObjectFormatter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(G o1, G o2)  
      @NotNull java.lang.String toString​(G obj)
      Returns a string representation of an object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • GameObjectFormatter

        public GameObjectFormatter()
    • Method Detail

      • toString

        @NotNull
        public @NotNull java.lang.String toString​(@NotNull
                                                  G obj)
        Description copied from interface: Formatter
        Returns a string representation of an object.
        Specified by:
        toString in interface Formatter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>,​G extends GameObject<G,​A,​R>>
        Parameters:
        obj - the object
        Returns:
        the string representation
      • compare

        public int compare​(@NotNull
                           G o1,
                           @NotNull
                           G o2)
        Specified by:
        compare in interface java.util.Comparator<G extends GameObject<G,​A,​R>>