ValueContainer (Groovy 2.4.5)
Date: 2015-09-17

groovy.json.internal

## Class ValueContainer

- java.lang.Object
- - groovy.json.internal.ValueContainer

- All Implemented Interfaces:
    Value, CharSequence

      public class ValueContainer
      extends Object
      implements CharSequence, Value

  Author:
    Rick Hightower

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `boolean` | `decodeStrings`
    `static Value` | `FALSE`
    `static Value` | `NULL`
    `static Value` | `TRUE`
    `Type` | `type`
    `Object` | `value`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValueContainer(List<Object> list)`
    `ValueContainer(Map<String,Object> map)`
    `ValueContainer(Object value, Type type, boolean decodeStrings)`
    `ValueContainer(Type type)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `BigDecimal` | `bigDecimalValue()`
    `BigInteger` | `bigIntegerValue()`
    `boolean` | `booleanValue()`
    `byte` | `byteValue()`
    `char` | `charAt(int index)`
    `char` | `charValue()`
    `void` | `chop()`
    `Date` | `dateValue()`
    `double` | `doubleValue()`
    `float` | `floatValue()`
    `int` | `intValue()`
    `boolean` | `isContainer()`
    `int` | `length()`
    `long` | `longValue()`
    `short` | `shortValue()`
    `String` | `stringValue()`
    `String` | `stringValueEncoded()`
    `CharSequence` | `subSequence(int start, int end)`
    `<T extends Enum> T` | `toEnum(Class<T> cls)`
    `String` | `toString()`
    `Object` | `toValue()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### TRUE

          public static final Value TRUE

    - #### FALSE

          public static final Value FALSE

    - #### NULL

          public static final Value NULL

    - #### value

          public Object value

    - #### type

          public Type type

    - #### decodeStrings

          public boolean decodeStrings

  - ### Constructor Detail

    - #### ValueContainer

          public ValueContainer(Object value,
                        Type type,
                        boolean decodeStrings)

    - #### ValueContainer

          public ValueContainer(Type type)

    - #### ValueContainer

          public ValueContainer(Map<String,Object> map)

    - #### ValueContainer

          public ValueContainer(List<Object> list)

  - ### Method Detail

    - #### intValue

          public int intValue()

      Specified by:
        `intValue` in interface `Value`

    - #### longValue

          public long longValue()

      Specified by:
        `longValue` in interface `Value`

    - #### booleanValue

          public boolean booleanValue()

      Specified by:
        `booleanValue` in interface `Value`

    - #### stringValue

          public String stringValue()

      Specified by:
        `stringValue` in interface `Value`

    - #### stringValueEncoded

          public String stringValueEncoded()

      Specified by:
        `stringValueEncoded` in interface `Value`

    - #### toString

          public String toString()

      Specified by:
        `toString` in interface `CharSequence`
      Overrides:
        `toString` in class `Object`

    - #### toValue

          public Object toValue()

      Specified by:
        `toValue` in interface `Value`

    - #### toEnum

          public <T extends Enum> T toEnum(Class<T> cls)

      Specified by:
        `toEnum` in interface `Value`

    - #### isContainer

          public boolean isContainer()

      Specified by:
        `isContainer` in interface `Value`

    - #### chop

          public void chop()

      Specified by:
        `chop` in interface `Value`

    - #### charValue

          public char charValue()

      Specified by:
        `charValue` in interface `Value`

    - #### length

          public int length()

      Specified by:
        `length` in interface `CharSequence`

    - #### charAt

          public char charAt(int index)

      Specified by:
        `charAt` in interface `CharSequence`

    - #### subSequence

          public CharSequence subSequence(int start,
                                 int end)

      Specified by:
        `subSequence` in interface `CharSequence`

    - #### dateValue

          public Date dateValue()

      Specified by:
        `dateValue` in interface `Value`

    - #### byteValue

          public byte byteValue()

      Specified by:
        `byteValue` in interface `Value`

    - #### shortValue

          public short shortValue()

      Specified by:
        `shortValue` in interface `Value`

    - #### bigDecimalValue

          public BigDecimal bigDecimalValue()

      Specified by:
        `bigDecimalValue` in interface `Value`

    - #### bigIntegerValue

          public BigInteger bigIntegerValue()

      Specified by:
        `bigIntegerValue` in interface `Value`

    - #### doubleValue

          public double doubleValue()

      Specified by:
        `doubleValue` in interface `Value`

    - #### floatValue

          public float floatValue()

      Specified by:
        `floatValue` in interface `Value`