/** * Precondition: The specified index contains a SoyMapData object. Gets the SoyMapData at the * given index. * * @param index The index. * @return The SoyMapData at the given index, or null of the index is undefined. */ public SoyMapData getMapData(int index) { return (SoyMapData) get(index); }
@Override public SoyValue getItem(SoyValue key) { return get(getIntegerIndex(key)); }
/** * Precondition: The specified index contains a SoyMapData object. * Gets the SoyMapData at the given index. * @param index The index. * @return The SoyMapData at the given index, or null of the index is undefined. */ public SoyMapData getMapData(int index) { return (SoyMapData) get(index); }
/** * Precondition: The specified index contains a SoyListData object. Gets the SoyListData at the * given index. * * @param index The index. * @return The SoyListData at the given index, or null of the index is undefined. */ public SoyListData getListData(int index) { return (SoyListData) get(index); }
@Override public SoyValueProvider getProvider(int index) { return get(index); }
/** * Precondition: The specified index contains a SoyMapData object. Gets the SoyMapData at the * given index. * * @param index The index. * @return The SoyMapData at the given index, or null of the index is undefined. */ public SoyMapData getMapData(int index) { return (SoyMapData) get(index); }
/** * Important: Do not use outside of Soy code (treat as superpackage-private). * * <p>Gets the data at the specified key. * * @param key An individual key. * @return The data at the specified key, or null if the key is not defined. */ @Override public SoyData getSingle(String key) { return get(Integer.parseInt(key)); }
/** * Important: Do not use outside of Soy code (treat as superpackage-private). * * <p>Gets the data at the specified key. * * @param key An individual key. * @return The data at the specified key, or null if the key is not defined. */ @Override public SoyData getSingle(String key) { return get(Integer.parseInt(key)); }
/** * Precondition: The specified index contains a float. Gets the float at the given index. * * @param index The index. * @return The float at the given index, or null of the index is undefined. */ public double getFloat(int index) { return get(index).floatValue(); }
/** * Precondition: The specified index contains an integer. Gets the integer at the given index. * * @param index The index. * @return The integer at the given index, or null of the index is undefined. */ public int getInteger(int index) { return get(index).integerValue(); }
/** * Precondition: The specified index contains a float. Gets the float at the given index. * * @param index The index. * @return The float at the given index, or null of the index is undefined. */ public double getFloat(int index) { return get(index).floatValue(); }
/** * Precondition: The specified index contains a string. Gets the string at the given index. * * @param index The index. * @return The string at the given index, or null of the index is undefined. */ public String getString(int index) { return get(index).stringValue(); }
/** * Precondition: The specified index contains a string. Gets the string at the given index. * * @param index The index. * @return The string at the given index, or null of the index is undefined. */ public String getString(int index) { return get(index).stringValue(); }
/** * Precondition: The specified index contains a boolean. * Gets the boolean at the given index. * @param index The index. * @return The boolean at the given index, or null of the index is undefined. */ public boolean getBoolean(int index) { return get(index).booleanValue(); }
/** * Precondition: The specified index contains a string. * Gets the string at the given index. * @param index The index. * @return The string at the given index, or null of the index is undefined. */ public String getString(int index) { return get(index).stringValue(); }
/** * Precondition: The specified index contains a boolean. Gets the boolean at the given index. * * @param index The index. * @return The boolean at the given index, or null of the index is undefined. */ public boolean getBoolean(int index) { return get(index).booleanValue(); }
/** * Precondition: The specified index contains a long. Gets the long at the given index. * * @param index The index. * @return The long at the given index, or null of the index is undefined. */ public long getLong(int index) { return get(index).longValue(); }
/** * Precondition: The specified index contains a long. Gets the long at the given index. * * @param index The index. * @return The long at the given index, or null of the index is undefined. */ public long getLong(int index) { return get(index).longValue(); }
/** * Precondition: The specified index contains an integer. * Gets the integer at the given index. * @param index The index. * @return The integer at the given index, or null of the index is undefined. */ public int getInteger(int index) { return get(index).integerValue(); }
/** * Precondition: The specified index contains a float. * Gets the float at the given index. * @param index The index. * @return The float at the given index, or null of the index is undefined. */ public double getFloat(int index) { return get(index).floatValue(); }