|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.jbase.util.Tables
public class Tables
The Tables class contains static helper methods to deal with
tables. It is comparable to the Collections or
Arrays class.
| Field Summary | |
|---|---|
static Table<?> |
EMPTY_TABLE
|
| Method Summary | ||
|---|---|---|
static
|
addAll(Iterable<? extends E> src,
Table<E> dst)
|
|
static
|
addAll(Table<? extends E> src,
Table<E> dst)
|
|
static Object[] |
asArray(Table<?> table)
|
|
static
|
asArray(Table<E> table,
A[] array)
|
|
static
|
asList(Table<E> table)
|
|
static
|
autoflushTable(Table<E> table)
|
|
static
|
emptyTable()
Returns an empty (immutable) table |
|
static
|
enumeration(Table<E> table)
|
|
static
|
fill(Table<E> table,
E value)
|
|
static
|
synchronizedTable(Table<E> table)
Returns an synchronized, thread-safe table (All methods of the table are synchronized). |
|
static
|
unmodifyableTable(Table<E> table)
Returns an unmodifyable table, i.e. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Table<?> EMPTY_TABLE
| Method Detail |
|---|
public static <E> Table<E> emptyTable()
public static <E> Table<E> unmodifyableTable(Table<E> table)
UnsupportedOperationException
public static <E> Table<E> synchronizedTable(Table<E> table)
Note: consider using an instance of ConcurrentTable
instead, which is oftentimes more efficient.
public static <E> Table<E> autoflushTable(Table<E> table)
public static <E> List<E> asList(Table<E> table)
public static Object[] asArray(Table<?> table)
public static <A,E extends A> A[] asArray(Table<E> table,
A[] array)
public static <E> Enumeration<E> enumeration(Table<E> table)
public static <E> void fill(Table<E> table,
E value)
throws IOException
IOException
public static <E> void addAll(Iterable<? extends E> src,
Table<E> dst)
throws IOException
IOException
public static <E> void addAll(Table<? extends E> src,
Table<E> dst)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||