Class Primitives

  • All Implemented Interfaces:
    one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>, one.xingyi.core.marshelling.HasJsonWithLinks<one.xingyi.core.marshelling.ContextForJson,​Primitives>, one.xingyi.core.sdk.IXingYiResource, IPrimitives

    public class Primitives
    extends java.lang.Object
    implements one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>, IPrimitives, one.xingyi.core.marshelling.HasJsonWithLinks<one.xingyi.core.marshelling.ContextForJson,​Primitives>
    • Constructor Summary

      Constructors 
      Constructor Description
      Primitives​(java.lang.String name, java.lang.Integer integerBoxed, java.lang.Integer integer, java.lang.Boolean booleanBoxed, java.lang.Boolean bool, java.lang.Double doubleBoxed, java.lang.Double doub, one.xingyi.core.client.ISimpleList<java.lang.String> stringList, one.xingyi.core.client.ISimpleList<java.lang.Integer> integerList, one.xingyi.core.client.ISimpleList<java.lang.Double> doubleList, one.xingyi.core.client.ISimpleList<java.lang.Boolean> booleanList)  
    • Constructor Detail

      • Primitives

        public Primitives​(java.lang.String name,
                          java.lang.Integer integerBoxed,
                          java.lang.Integer integer,
                          java.lang.Boolean booleanBoxed,
                          java.lang.Boolean bool,
                          java.lang.Double doubleBoxed,
                          java.lang.Double doub,
                          one.xingyi.core.client.ISimpleList<java.lang.String> stringList,
                          one.xingyi.core.client.ISimpleList<java.lang.Integer> integerList,
                          one.xingyi.core.client.ISimpleList<java.lang.Double> doubleList,
                          one.xingyi.core.client.ISimpleList<java.lang.Boolean> booleanList)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface IPrimitives
      • integer

        public java.lang.Integer integer()
        Specified by:
        integer in interface IPrimitives
      • bool

        public java.lang.Boolean bool()
        Specified by:
        bool in interface IPrimitives
      • doub

        public java.lang.Double doub()
        Specified by:
        doub in interface IPrimitives
      • stringList

        public one.xingyi.core.client.ISimpleList<java.lang.String> stringList()
        Specified by:
        stringList in interface IPrimitives
      • withstringList

        public Primitives withstringList​(one.xingyi.core.client.ISimpleList<java.lang.String> stringList)
        Specified by:
        withstringList in interface IPrimitives
      • integerList

        public one.xingyi.core.client.ISimpleList<java.lang.Integer> integerList()
        Specified by:
        integerList in interface IPrimitives
      • withintegerList

        public Primitives withintegerList​(one.xingyi.core.client.ISimpleList<java.lang.Integer> integerList)
        Specified by:
        withintegerList in interface IPrimitives
      • doubleList

        public one.xingyi.core.client.ISimpleList<java.lang.Double> doubleList()
        Specified by:
        doubleList in interface IPrimitives
      • withdoubleList

        public Primitives withdoubleList​(one.xingyi.core.client.ISimpleList<java.lang.Double> doubleList)
        Specified by:
        withdoubleList in interface IPrimitives
      • booleanList

        public one.xingyi.core.client.ISimpleList<java.lang.Boolean> booleanList()
        Specified by:
        booleanList in interface IPrimitives
      • withbooleanList

        public Primitives withbooleanList​(one.xingyi.core.client.ISimpleList<java.lang.Boolean> booleanList)
        Specified by:
        withbooleanList in interface IPrimitives
      • toJson

        public <J> J toJson​(one.xingyi.core.marshelling.JsonWriter<J> jsonWriter,
                            one.xingyi.core.marshelling.ContextForJson context)
        Specified by:
        toJson in interface one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>
      • toJsonWithLinks

        public <J> J toJsonWithLinks​(one.xingyi.core.marshelling.JsonWriter<J> jsonWriter,
                                     one.xingyi.core.marshelling.ContextForJson context,
                                     java.util.function.Function<Primitives,​java.lang.String> stateFn)
        Specified by:
        toJsonWithLinks in interface one.xingyi.core.marshelling.HasJsonWithLinks<one.xingyi.core.marshelling.ContextForJson,​Primitives>
      • 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