Package com.facilita.fc.jni
Class RegExpMatchList
- java.lang.Object
-
- com.facilita.fc.jni.RegExpMatchList
-
public class RegExpMatchList extends java.lang.ObjectA list ofRegExpMatchobjects.
-
-
Constructor Summary
Constructors Constructor Description RegExpMatchList()Creates an emptyRegExpMatchListobject.RegExpMatchList(long n)Creates aRegExpMatchListobject with capacity n.RegExpMatchList(long cPtr, boolean cMemoryOwn)For internal use only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RegExpMatch x)Adds aRegExpMatchto the list.longcapacity()Gets the capacity of the list.voiddelete()RegExpMatchget(int i)Gets the nth match in the list.static longgetCPtr(RegExpMatchList obj)For internal use only.booleanisEmpty()Returnstrueif the list is empty.voidreserve(long n)Sets the capacity of the listvoidset(int i, RegExpMatch val)Sets the nth match in the list.longsize()Gets the number of items in the list.
-
-
-
Constructor Detail
-
RegExpMatchList
public RegExpMatchList(long cPtr, boolean cMemoryOwn)For internal use only. Of no interest to the user.- Parameters:
cPtr- pointer to the CPP wrapped objectcMemoryOwn- indicates if this object is responsible for memory management of the CPP object
-
RegExpMatchList
public RegExpMatchList()
Creates an emptyRegExpMatchListobject.
-
RegExpMatchList
public RegExpMatchList(long n)
Creates aRegExpMatchListobject with capacity n.- Parameters:
n- the capacity of the list
-
-
Method Detail
-
getCPtr
public static long getCPtr(RegExpMatchList obj)
For internal use only. Of no interest to the user.- Parameters:
obj- a reference to an object of this class- Returns:
- a long containing the address of the CPP wrapped object
-
delete
public void delete()
-
size
public long size()
Gets the number of items in the list.- Returns:
- the number of items in the list
-
capacity
public long capacity()
Gets the capacity of the list.- Returns:
- the capacity of the list
-
reserve
public void reserve(long n)
Sets the capacity of the list- Parameters:
n- the capacity of the list
-
isEmpty
public boolean isEmpty()
Returnstrueif the list is empty.- Returns:
trueif the list contains zero items
-
add
public void add(RegExpMatch x)
Adds aRegExpMatchto the list.- Parameters:
x- the match to add
-
get
public RegExpMatch get(int i)
Gets the nth match in the list.- Parameters:
i- the index of the match to get- Returns:
- the match
-
set
public void set(int i, RegExpMatch val)Sets the nth match in the list.- Parameters:
i- the index to insert the itemval- the value to insert
-
-