Examples of IntArrayIterator


Examples of httl.util.iterators.IntArrayIterator

  public static Iterator<Short> toIterator(short[] object) {
    return new ShortArrayIterator(object);
  }

  public static Iterator<Integer> toIterator(int[] object) {
    return new IntArrayIterator(object);
  }
View Full Code Here

Examples of httl.util.iterators.IntArrayIterator

    } else if (object instanceof Map<?, ?>) {
      return ((Map<?, ?>)object).entrySet().iterator();
    } else if (object instanceof Object[]) {
      return new ObjectArrayIterator<Object>((Object[]) object);
    } else if (object instanceof int[]) {
      return new IntArrayIterator((int[]) object);
    } else if (object instanceof long[]) {
      return new LongArrayIterator((long[]) object);
    } else if (object instanceof float[]) {
      return new FloatArrayIterator((float[]) object);
    } else if (object instanceof double[]) {
View Full Code Here

Examples of prefuse.util.collections.IntArrayIterator

     * node
     */
    public IntIterator edgeRows(int node, int direction) {
        if ( direction==OUTEDGES ) {
            int[] outedges = (int[])m_links.get(node, OUTLINKS);
            return new IntArrayIterator(outedges, 0, getOutDegree(node));
        } else if ( direction==INEDGES ) {
            int[] inedges = (int[])m_links.get(node, INLINKS);
            return new IntArrayIterator(inedges, 0, getInDegree(node));
        } else if ( direction==UNDIRECTED ) {
            return new CompositeIntIterator(
                edgeRows(node, OUTEDGES), edgeRows(node, INEDGES));
        } else {
            throw new IllegalArgumentException("Unrecognized edge type: "
View Full Code Here

Examples of prefuse.util.collections.IntArrayIterator

     * node
     */
    public IntIterator edgeRows(int node, int direction) {
        if ( direction==OUTEDGES ) {
            int[] outedges = (int[])m_links.get(node, OUTLINKS);
            return new IntArrayIterator(outedges, 0, getOutDegree(node));
        } else if ( direction==INEDGES ) {
            int[] inedges = (int[])m_links.get(node, INLINKS);
            return new IntArrayIterator(inedges, 0, getInDegree(node));
        } else if ( direction==UNDIRECTED ) {
            return new CompositeIntIterator(
                edgeRows(node, OUTEDGES), edgeRows(node, INEDGES));
        } else {
            throw new IllegalArgumentException("Unrecognized edge type: "
View Full Code Here

Examples of stallone.ints.IntArrayIterator

    }

    @Override
    public IIntIterator nodeIterator()
    {
        IntArrayIterator it = new IntArrayIterator(Ints.create.arrayRange(matrix.rows()));
        return(it);
    }
View Full Code Here

Examples of stallone.ints.IntArrayIterator

    }

    @Override
    public IIntIterator nodeIterator()
    {
        IntArrayIterator it = new IntArrayIterator(Ints.create.arrayRange(neighbors.length));
        return(it);
    }
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.