Class Scalar

java.lang.Object
ch.brix.gql.client.Scalar

public class Scalar extends Object
Base for scalars
  • Constructor Details

    • Scalar

      public Scalar()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public Scalar from(Object object)
      Parameters:
      object - requires correct implementation of toString()
      Returns:
      Scalar
    • getBoolean

      public boolean getBoolean()
    • getInt

      public int getInt()
    • getByte

      public byte getByte()
    • getLong

      public long getLong()
    • getShort

      public short getShort()
    • getChar

      public char getChar()
    • getBigInteger

      public BigInteger getBigInteger()
    • getDouble

      public double getDouble()
    • getFloat

      public float getFloat()
    • getBigDecimal

      public BigDecimal getBigDecimal()
    • getDateFromUnixSeconds

      public Date getDateFromUnixSeconds()
    • getDateFromUnixMilis

      public Date getDateFromUnixMilis()
    • getDate

      public Date getDate(SimpleDateFormat sdf) throws ParseException
      Throws:
      ParseException
    • getDate

      public TemporalAccessor getDate(DateTimeFormatter formatter)
    • getLocale

      public Locale getLocale()
    • getDuration

      public Duration getDuration()