clojure.lang
Class ArrayChunk

java.lang.Object
  extended by clojure.lang.ArrayChunk
All Implemented Interfaces:
Counted, IChunk, Indexed, Serializable

public final class ArrayChunk
extends Object
implements IChunk, Serializable

See Also:
Serialized Form

Constructor Summary
ArrayChunk(Object[] array)
           
ArrayChunk(Object[] array, int off)
           
ArrayChunk(Object[] array, int off, int end)
           
 
Method Summary
 int count()
           
 IChunk dropFirst()
           
 Object nth(int i)
           
 Object nth(int i, Object notFound)
           
 Object reduce(IFn f, Object start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayChunk

public ArrayChunk(Object[] array)

ArrayChunk

public ArrayChunk(Object[] array,
                  int off)

ArrayChunk

public ArrayChunk(Object[] array,
                  int off,
                  int end)
Method Detail

nth

public Object nth(int i)
Specified by:
nth in interface Indexed

nth

public Object nth(int i,
                  Object notFound)
Specified by:
nth in interface Indexed

count

public int count()
Specified by:
count in interface Counted

dropFirst

public IChunk dropFirst()
Specified by:
dropFirst in interface IChunk

reduce

public Object reduce(IFn f,
                     Object start)
Specified by:
reduce in interface IChunk


Copyright © 2012. All Rights Reserved.