mirror of
https://github.com/corda/corda.git
synced 2025-06-15 13:48:14 +00:00
add additional methods and fields to class library
This commit is contained in:
@ -37,6 +37,10 @@ public class Vector<T> implements List<T> {
|
||||
list.add(index, element);
|
||||
}
|
||||
|
||||
public void insertElementAt(T element, int index) {
|
||||
add(index, element);
|
||||
}
|
||||
|
||||
public synchronized boolean add(T element) {
|
||||
return list.add(element);
|
||||
}
|
||||
@ -57,6 +61,10 @@ public class Vector<T> implements List<T> {
|
||||
return list.set(index, value);
|
||||
}
|
||||
|
||||
public T setElementAt(T value, int index) {
|
||||
return set(index, value);
|
||||
}
|
||||
|
||||
public T elementAt(int index) {
|
||||
return get(index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user