Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.tinkerpop.frames;
 
 

Author(s):
Marko A. Rodriguez (http://markorodriguez.com)
public class FramedVertexIterable<T> implements Iterable<T> {
    protected final Class<T> kind;
    protected final Iterable<Vertexiterable;
    protected final FramedGraph<? extends GraphframedGraph;
    public FramedVertexIterable(final FramedGraph<? extends GraphframedGraphfinal Iterable<Vertexiterablefinal Class<T> kind) {
        this. = framedGraph;
        this. = iterable;
        this. = kind;
    }
    public Iterator<T> iterator() {
        return new Iterator<T>() {
            private Iterator<Vertexiterator = .iterator();
            public void remove() {
                throw new UnsupportedOperationException();
            }
            public boolean hasNext() {
                return this..hasNext();
            }
            public T next() {
                return .frame(this..next(), );
            }
        };
    }
New to GrepCode? Check out our FAQ X