public class Section extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<? extends String> |
description |
protected String |
name |
protected T |
value |
| Constructor and Description |
|---|
Section(List<? extends String> description,
String name) |
Section(List<? extends String> description,
String[] operators,
String name) |
Section(List<? extends String> description,
String[] operators,
String name,
List<? extends Element<?>> value) |
Section(List<? extends String> description,
String name,
List<? extends Element<?>> value) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Element<?>> |
append(E element) |
panda.std.Option<Element<?>> |
get(int index) |
panda.std.Option<Element<?>> |
get(String key) |
panda.std.Option<Array> |
getArray(int index) |
panda.std.Option<Array> |
getArray(String key) |
panda.std.Option<Boolean> |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean defaultValue) |
List<? extends String> |
getDescription() |
panda.std.Option<Entry> |
getEntry(int index) |
panda.std.Option<Entry> |
getEntry(String key) |
panda.std.Option<Integer> |
getInt(String key) |
int |
getInt(String key,
int defaultValue) |
panda.std.Option<List<String>> |
getList(String key) |
List<String> |
getList(String key,
List<String> defaultValue) |
String |
getName()
The name of element
|
String[] |
getOperators() |
panda.std.Option<Section> |
getSection(int index) |
panda.std.Option<Section> |
getSection(String key) |
panda.std.Option<String> |
getString(String key) |
String |
getString(String key,
String defaultValue) |
T |
getValue() |
boolean |
has(String key) |
void |
setString(String key,
String value) |
void |
setValue(T value) |
int |
size() |
protected final String name
protected T value
public Section(List<? extends String> description, String name, List<? extends Element<?>> value)
public <E extends Element<?>> E append(E element)
@Contract(value="null -> false") public boolean has(String key)
public int size()
public panda.std.Option<Element<?>> get(int index)
@Contract(value="_, null -> null") public List<String> getList(String key, List<String> defaultValue)
public boolean getBoolean(String key, boolean defaultValue)
public int getInt(String key, int defaultValue)
@Contract(value="_, null -> null") public String getString(String key, String defaultValue)
public panda.std.Option<Entry> getEntry(int index)
public panda.std.Option<Array> getArray(int index)
public panda.std.Option<Section> getSection(int index)
public String[] getOperators()
public void setValue(T value)
public List<? extends String> getDescription()
getDescription in interface Element<T>public String getName()
NamedElementgetName in interface NamedElement<T>Copyright © 2021. All rights reserved.