public class

LazySplittable

extends Object
implements Splittable
java.lang.Object
   ↳ com.google.gwt.autobean.shared.impl.LazySplittable

Class Overview

Holds a string payload with the expectation that the object will be used only for creating a larger payload.

Summary

Fields
public static final Splittable NULL
Public Constructors
LazySplittable(String payload)
Public Methods
String asString()
Returns a string representation of the data.
Splittable get(int index)
Returns the nth element of a list.
Splittable get(String key)
Returns the named property.
String getPayload()
Returns a wire-format representation of the data.
List<String> getPropertyKeys()
Returns all keys available in the Splittable.
boolean isIndexed()
Returns true if size() and get(int) can be expected to return meaningful values.
boolean isKeyed()
Returns true if getPropertyKeys() and get(String) can be expected to return meaningful values.
boolean isNull(String key)
Indicates if the named property is null.
boolean isNull(int index)
Indicates if the nth element of a list is null.
boolean isString()
Returns true if asString() can be expected to return a meaningful value.
int size()
Returns the size of the list.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.autobean.shared.Splittable

Fields

public static final Splittable NULL

Public Constructors

public LazySplittable (String payload)

Public Methods

public String asString ()

Returns a string representation of the data.

public Splittable get (int index)

Returns the nth element of a list.

public Splittable get (String key)

Returns the named property.

public String getPayload ()

Returns a wire-format representation of the data.

public List<String> getPropertyKeys ()

Returns all keys available in the Splittable. This method may be expensive to compute.

public boolean isIndexed ()

Returns true if size() and get(int) can be expected to return meaningful values.

public boolean isKeyed ()

Returns true if getPropertyKeys() and get(String) can be expected to return meaningful values.

public boolean isNull (String key)

Indicates if the named property is null.

public boolean isNull (int index)

Indicates if the nth element of a list is null.

public boolean isString ()

Returns true if asString() can be expected to return a meaningful value.

public int size ()

Returns the size of the list.