Examples of SingleIterator


Examples of com.tinkerpop.gremlin.process.util.SingleIterator

            else if (s instanceof Iterable)
                return ((Iterable) s).iterator();
            else if (s instanceof Map)
                return ((Map) s).entrySet().iterator();
            else
                return new SingleIterator(s);
        });
    }
View Full Code Here

Examples of com.tinkerpop.pipes.util.iterators.SingleIterator

        if (start instanceof Iterator) {
            super.setStarts((Iterator) start);
        } else if (start instanceof Iterable) {
            super.setStarts((Iterable) start);
        } else {
            super.setStarts(new SingleIterator(start));
        }
    }
View Full Code Here

Examples of com.tinkerpop.pipes.util.iterators.SingleIterator

        if (starts instanceof Iterator) {
            pipeline.setStarts((Iterator) starts);
        } else if (starts instanceof Iterable) {
            pipeline.setStarts(((Iterable) starts).iterator());
        } else {
            pipeline.setStarts(new SingleIterator(starts));
        }
    }
View Full Code Here

Examples of org.openbp.common.util.iterator.SingleIterator

   */
  public Iterator getSockets()
  {
    // Node has a single node socket only
    if (socket != null)
      return new SingleIterator(socket);
    return EmptyIterator.getInstance();
  }
View Full Code Here

Examples of org.openbp.common.util.iterator.SingleIterator

    if (o.getClass().isArray())
    {
      return Arrays.asList((Object []) o).iterator();
    }

    return new SingleIterator(o);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.