Class Data


  • public class Data
    extends java.lang.Object
    Data

    The response data from the action RPC call

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Data._Deserializer  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      static Data of​(One value)  
      static Data of​(java.util.List<Two> value)  
      java.lang.String toString()  
      java.lang.Object value()
      Returns an instance of one of these types: com.stackone.stackone_client_java.models.components.One java.util.List<com.stackone.stackone_client_java.models.components.Two>
      • Methods inherited from class java.lang.Object

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

      • of

        public static Data of​(One value)
      • of

        public static Data of​(java.util.List<Two> value)
      • value

        public java.lang.Object value()
        Returns an instance of one of these types:
        • com.stackone.stackone_client_java.models.components.One
        • java.util.List<com.stackone.stackone_client_java.models.components.Two>

        Use instanceof to determine what type is returned. For example:

         if (obj.value() instanceof String) {
             String answer = (String) obj.value();
             System.out.println("answer=" + answer);
         }
         
        Returns:
        value of oneOf type
      • 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