clojure.lang
Class ArraySeq

java.lang.Object
  extended by clojure.lang.Obj
      extended by clojure.lang.ASeq
          extended by clojure.lang.ArraySeq
All Implemented Interfaces:
Counted, IHashEq, IMeta, IndexedSeq, IObj, IPersistentCollection, IReduce, IReduceInit, ISeq, Seqable, Sequential, Serializable, Iterable, Collection, List

public class ArraySeq
extends ASeq
implements IndexedSeq, IReduce

See Also:
Serialized Form

Nested Class Summary
static class ArraySeq.ArraySeq_boolean
           
static class ArraySeq.ArraySeq_byte
           
static class ArraySeq.ArraySeq_char
           
static class ArraySeq.ArraySeq_double
           
static class ArraySeq.ArraySeq_float
           
static class ArraySeq.ArraySeq_int
           
static class ArraySeq.ArraySeq_long
           
static class ArraySeq.ArraySeq_short
           
 
Field Summary
 Object[] array
           
 
Method Summary
 int count()
           
static ArraySeq create()
           
static ArraySeq create(Object... array)
           
 Object first()
           
 int index()
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 ISeq next()
           
 Object reduce(IFn f)
           
 Object reduce(IFn f, Object start)
           
 ArraySeq withMeta(IPersistentMap meta)
           
 
Methods inherited from class clojure.lang.ASeq
add, add, addAll, addAll, clear, cons, contains, containsAll, empty, equals, equiv, get, hashCode, hasheq, isEmpty, iterator, listIterator, listIterator, more, remove, remove, removeAll, retainAll, seq, set, size, subList, toArray, toArray, toString
 
Methods inherited from class clojure.lang.Obj
meta
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface clojure.lang.ISeq
cons, more
 
Methods inherited from interface clojure.lang.IPersistentCollection
empty, equiv
 
Methods inherited from interface clojure.lang.Seqable
seq
 

Field Detail

array

public final Object[] array
Method Detail

create

public static ArraySeq create()

create

public static ArraySeq create(Object... array)

first

public Object first()
Specified by:
first in interface ISeq

next

public ISeq next()
Specified by:
next in interface ISeq

count

public int count()
Specified by:
count in interface Counted
Specified by:
count in interface IPersistentCollection
Overrides:
count in class ASeq

index

public int index()
Specified by:
index in interface IndexedSeq

withMeta

public ArraySeq withMeta(IPersistentMap meta)
Specified by:
withMeta in interface IObj
Specified by:
withMeta in class Obj

reduce

public Object reduce(IFn f)
Specified by:
reduce in interface IReduce

reduce

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

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List
Overrides:
indexOf in class ASeq

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List
Overrides:
lastIndexOf in class ASeq


Copyright © 2015. All Rights Reserved.