public class Struct extends Object implements Iterable<Struct.Field>, Map<String,Object>
| Modifier and Type | Class and Description |
|---|---|
class |
Struct.Field |
class |
Struct.TypedArrayIterable<T> |
class |
Struct.TypedArrayIterator<T> |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Iterator<Struct.Field> iterator()
iterator in interface Iterable<Struct.Field>public void append(String name, Object val)
name - the field nameval - the field valuepublic boolean equals(Object another)
public boolean has(String name)
public String[] sortedNames()
public boolean getBoolean(String name, boolean defaultValue)
public boolean getBoolean(String name)
public byte getByte(String name, byte defaultValue)
public byte getByte(String name)
public short getShort(String name, short defaultValue)
public short getShort(String name)
public int getInt(String name, int defaultValue)
public int getInt(String name)
public long getLong(String name, long defaultValue)
public long getLong(String name)
public float getFloat(String name, float defaultValue)
public float getFloat(String name)
public double getDouble(String name, double defaultValue)
public double getDouble(String name)
public byte[] getBytes(String name)
public boolean containsKey(Object name)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>Copyright © 2016–2021 Verizon Media. All rights reserved.