Interface JSList<T>
-
- All Superinterfaces:
JSValue
- All Known Subinterfaces:
JSRoles
- All Known Implementing Classes:
JSListImpl,JSRolesImpl,JSStringListImpl
public interface JSList<T> extends JSValue
Have type xxx[Boolean] User: mike Date: 10/25/19 Time: 12:46
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(T val)booleancontains(T val)List<T>get()Tget(int index)voidremove(T val)intsize()Returns the number of elements in this list.-
Methods inherited from interface org.bedework.jsforj.model.values.JSValue
clear, copy, getBooleanProperty, getBooleanValue, getChanged, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
-
-
-
Method Detail
-
size
int size()
Returns the number of elements in this list. If this list contains more thanInteger.MAX_VALUEelements, returnsInteger.MAX_VALUE.- Returns:
- the number of elements in this list
-
get
T get(int index)
- Parameters:
index- of entry- Returns:
- the value throws JsforjException if index out of bounds
-
add
void add(T val)
- Parameters:
val- to be added to list
-
contains
boolean contains(T val)
- Parameters:
val- to be checked- Returns:
- true if present in list
-
remove
void remove(T val)
- Parameters:
val- to remove throws JsforjException if index out of bounds
-
-