Class Data


  • public final class Data
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Data()  
      Data​(java.lang.String id)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> Data buildFrom​(T data)  
      boolean equals​(java.lang.Object o)  
      Data from​(java.util.Map<java.lang.String,​java.lang.Object> map)  
      <T> Data from​(T data)  
      <T> T get​(java.lang.String key)  
      java.util.Map<java.lang.String,​java.lang.Object> getData()  
      java.lang.String getID()  
      int hashCode()  
      <T> Data set​(java.lang.String key, T value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Data

        public Data​(java.lang.String id)
      • Data

        public Data()
    • Method Detail

      • buildFrom

        public static <T> Data buildFrom​(T data)
      • getID

        public java.lang.String getID()
      • getData

        public java.util.Map<java.lang.String,​java.lang.Object> getData()
      • set

        public <T> Data set​(java.lang.String key,
                            T value)
      • from

        public <T> Data from​(T data)
      • from

        public Data from​(java.util.Map<java.lang.String,​java.lang.Object> map)
      • get

        public <T> T get​(java.lang.String key)
      • equals

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

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

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