Class Fact<T>

  • Type Parameters:
    T - type of the fact

    public class Fact<T>
    extends java.lang.Object
    A class representing a named fact. Facts have unique names within a Facts instance.
    • Constructor Detail

      • Fact

        public Fact​(java.lang.String name,
                    T value)
        Create a new fact.
        Parameters:
        name - of the fact
        value - of the fact
    • Method Detail

      • getMaxCharsInValueToString

        public static int getMaxCharsInValueToString()
      • isHumanDateInToString

        public static boolean isHumanDateInToString()
      • setHumanDateInToString

        public static void setHumanDateInToString​(boolean humanDateInToString)
      • setMaxCharsInValueToString

        public static void setMaxCharsInValueToString​(int maxCharsInValueToString)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getCreatedAt

        public long getCreatedAt()
      • getName

        public java.lang.String getName()
        Get the fact name.
        Returns:
        fact name
      • getValue

        public T getValue()
        Get the fact value.
        Returns:
        fact value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object