mobi.voiceassistant.base
Class Token
java.lang.Object
mobi.voiceassistant.base.Token
- All Implemented Interfaces:
- Parcelable
public class Token
- extends Object
- implements Parcelable
CREATOR
public static final Parcelable.Creator<Token> CREATOR
EMPTY_ARRAY
public static final Token[] EMPTY_ARRAY
Token
public Token(String source)
Token
public Token(String source,
String name)
Token
public Token(String source,
String name,
String value)
Token
public Token(String source,
String name,
String value,
Token... children)
getName
public String getName()
getSource
public String getSource()
getValue
public String getValue()
getIntValue
public int getIntValue()
parseInt
public int parseInt()
isEmpty
public boolean isEmpty()
getTokenByIndex
public Token getTokenByIndex(int index)
getTokensCount
public int getTokensCount()
findTokensByName
public List<Token> findTokensByName(String name)
findTokenByName
public Token findTokenByName(String name)
hasToken
public boolean hasToken(String name)
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public void writeToParcel(Parcel parcel,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
writeToParcel
public static void writeToParcel(Token token,
Parcel parcel,
int flags)
toString
public String toString()
- Overrides:
toString
in class Object