Package ch.brix.gql.client
Class Scalar
- java.lang.Object
-
- ch.brix.gql.client.Scalar
-
public class Scalar extends Object
Base for scalars
-
-
Constructor Summary
Constructors Constructor Description Scalar()
-
Method Summary
Modifier and Type Method Description Scalarfrom(Object object)BigDecimalgetBigDecimal()BigIntegergetBigInteger()booleangetBoolean()bytegetByte()chargetChar()DategetDate(SimpleDateFormat sdf)TemporalAccessorgetDate(DateTimeFormatter formatter)DategetDateFromUnixMilis()DategetDateFromUnixSeconds()doublegetDouble()DurationgetDuration()floatgetFloat()intgetInt()LocalegetLocale()longgetLong()shortgetShort()StringtoString()
-
-
-
Method Detail
-
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()
-
-