Package | Description |
---|---|
java.util |
Utilities
|
tijos.framework.networkcenter.ntp |
Network time protocol client class
|
tijos.framework.util.json |
JSON-java suppport
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractList<E>
A basic implementation of most of the methods in the List interface to make
it easier to create a List based on a random-access data structure.
|
class |
AbstractSequentialList<E>
Abstract superclass to make it easier to implement the List interface when
backed by a sequential-access store, such as a linked list.
|
class |
ArrayList<E>
An array-backed implementation of the List interface.
|
class |
LinkedList<T>
Linked list implementation of the List interface.
|
class |
Stack<T> |
class |
Vector<T>
The
Vector classes implements growable arrays of Objects. |
Modifier and Type | Field and Description |
---|---|
static List |
Collections.EMPTY_LIST
An immutable, serializable, empty List, which implements RandomAccess.
|
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
Arrays.asList(T... a)
Returns a list "view" of the specified array.
|
static <E> List<E> |
Collections.checkedList(List<E> l,
Class<E> type)
Returns a dynamically typesafe view of the given list,
where any modification is first checked to ensure that the type
of the new data is appropriate.
|
static <T> List<T> |
Collections.emptyList()
Returns an immutable, serializable parameterized empty list.
|
static <T> List<T> |
Collections.nCopies(int n,
T o)
Creates an immutable list consisting of the same object repeated n times.
|
static <T> List<T> |
Collections.singletonList(T o)
Obtain an immutable List consisting of a single element.
|
List<T> |
Vector.subList(int fromIndex,
int toIndex)
Obtain a List view of a subsection of this list, from fromIndex
(inclusive) to toIndex (exclusive).
|
List<E> |
List.subList(int fromIndex,
int toIndex)
Obtain a List view of a subsection of this list, from fromIndex
(inclusive) to toIndex (exclusive).
|
List<E> |
AbstractList.subList(int fromIndex,
int toIndex)
Obtain a List view of a subsection of this list, from fromIndex
(inclusive) to toIndex (exclusive).
|
static <T> List<T> |
Collections.synchronizedList(List<T> l)
Returns a synchronized (thread-safe) list wrapper backed by the
given list.
|
static <T> List<T> |
Collections.unmodifiableList(List<? extends T> l)
Returns an unmodifiable view of the given list.
|
Modifier and Type | Method and Description |
---|---|
static <T> int |
Collections.binarySearch(List<? extends Comparable<? super T>> l,
T key)
Perform a binary search of a List for a key, using the natural ordering of
the elements.
|
static <T> int |
Collections.binarySearch(List<? extends T> l,
T key,
Comparator<? super T> c)
Perform a binary search of a List for a key, using a supplied Comparator.
|
static <E> List<E> |
Collections.checkedList(List<E> l,
Class<E> type)
Returns a dynamically typesafe view of the given list,
where any modification is first checked to ensure that the type
of the new data is appropriate.
|
static <T> void |
Collections.copy(List<? super T> dest,
List<? extends T> source)
Copy one list to another.
|
static <T> void |
Collections.copy(List<? super T> dest,
List<? extends T> source)
Copy one list to another.
|
static <T> void |
Collections.fill(List<? super T> l,
T val)
Replace every element of a list with a given value.
|
static int |
Collections.indexOfSubList(List<?> source,
List<?> target)
Returns the starting index where the specified sublist first occurs
in a larger list, or -1 if there is no matching position.
|
static int |
Collections.indexOfSubList(List<?> source,
List<?> target)
Returns the starting index where the specified sublist first occurs
in a larger list, or -1 if there is no matching position.
|
static int |
Collections.lastIndexOfSubList(List<?> source,
List<?> target)
Returns the starting index where the specified sublist last occurs
in a larger list, or -1 if there is no matching position.
|
static int |
Collections.lastIndexOfSubList(List<?> source,
List<?> target)
Returns the starting index where the specified sublist last occurs
in a larger list, or -1 if there is no matching position.
|
static <T> boolean |
Collections.replaceAll(List<T> list,
T oldval,
T newval)
Replace all instances of one object with another in the specified list.
|
static void |
Collections.reverse(List<?> l)
Reverse a given list.
|
static void |
Collections.rotate(List<?> list,
int distance)
Rotate the elements in a list by a specified distance.
|
static void |
Collections.shuffle(List<?> l)
Shuffle a list according to a default source of randomness.
|
static void |
Collections.shuffle(List<?> l,
Random r)
Shuffle a list according to a given source of randomness.
|
static <T extends Comparable<? super T>> |
Collections.sort(List<T> l)
Sort a list according to the natural ordering of its elements.
|
static <T> void |
Collections.sort(List<T> l,
Comparator<? super T> c)
Sort a list according to a specified Comparator.
|
static void |
Collections.swap(List<?> l,
int i,
int j)
Swaps the elements at the specified positions within the list.
|
static <T> List<T> |
Collections.synchronizedList(List<T> l)
Returns a synchronized (thread-safe) list wrapper backed by the
given list.
|
static <T> List<T> |
Collections.unmodifiableList(List<? extends T> l)
Returns an unmodifiable view of the given list.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
TimeInfo.getComments()
Return list of comments (if any) during processing of NTP packet.
|
Constructor and Description |
---|
TimeInfo(NtpV3Packet message,
long returnTime,
List<String> comments)
Create TimeInfo object with raw packet message and destination time received.
|
TimeInfo(NtpV3Packet message,
long returnTime,
List<String> comments,
boolean doComputeDetails)
Create TimeInfo object with raw packet message and destination time received.
|
Modifier and Type | Method and Description |
---|---|
List<Object> |
JSONArray.toList()
Returns a java.util.List containing all of the elements in this array.
|