|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.util.Cursors
public final class Cursors
This class contains only static methods, that can be used in conjunction with
objects of type YCursor and Iterator.
| Method Summary | |
|---|---|
static YCursor |
concatenate(YCursor c1,
YCursor c2)
Creates a new cursor that provides a logical view on the concatenation of the two given cursors. |
static YCursor |
createCursor(Collection c)
Creates a YCursor view of the given collection. |
static Iterator |
createIterator(YCursor cursor)
Creates a first-to-last Iterator view of the given cursor. |
static Iterator |
createReverseIterator(YCursor cursor)
Creates a last-to-first Iterator view of the given cursor. |
static Object[] |
toArray(YCursor cursor,
Object[] dest)
Creates or fills an array with the values provided by the cursor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object[] toArray(YCursor cursor,
Object[] dest)
cursor - the cursordest - the array to fill with the values or null if the
method should create the array itself
public static YCursor createCursor(Collection c)
prev and toLast
operations.
c - The collection.
public static Iterator createIterator(YCursor cursor)
Iterator view of the given cursor.
Note that the returned iterator does not support the
remove operation.
cursor - The cursor.
public static Iterator createReverseIterator(YCursor cursor)
Iterator view of the given cursor.
Note that the returned iterator does not support the
remove operation.
cursor - The cursor.
public static YCursor concatenate(YCursor c1,
YCursor c2)
c1 - - first concatenation argumentc2 - - second concatenation argument
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||