| 
 | 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
Provides utility methods for working with cursors
 and iterators.
| 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(java.util.Collection c)Creates a YCursor view of the given collection. | 
| static EdgeCursor | createEdgeCursor(java.util.Collection c)Creates a cursor view of the given collection. | 
| static java.util.Iterator | createIterator(YCursor cursor)Creates a first-to-last Iteratorview of the given cursor. | 
| static NodeCursor | createNodeCursor(java.util.Collection c)Creates a cursor view of the given collection. | 
| static java.util.Iterator | createReverseIterator(YCursor cursor)Creates a last-to-first Iteratorview of the given cursor. | 
| static java.lang.Object[] | toArray(YCursor cursor,
        java.lang.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 java.lang.Object[] toArray(YCursor cursor,
                                         java.lang.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(java.util.Collection c)
prev and toLast 
 operations.
c - The collection.
createEdgeCursor(java.util.Collection), 
createNodeCursor(java.util.Collection)public static EdgeCursor createEdgeCursor(java.util.Collection c)
 Note that the returned cursor does not support the operations 
 prev,
 toLast, and
 EdgeCursor.cyclicPrev().
 
c - The collection.
EdgeCursor view of the given collection.createNodeCursor(java.util.Collection)public static NodeCursor createNodeCursor(java.util.Collection c)
 Note that the returned cursor does not support the operations 
 prev,
 toLast, and
 NodeCursor.cyclicPrev().
 
c - The collection.
NodeCursor view of the given collection.createEdgeCursor(java.util.Collection)public static java.util.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 java.util.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-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||