com.cyc.tool.subl.jrtl.nativeCode.type.core
Interface SubLSequence

All Superinterfaces:
java.lang.Cloneable, SubLObject
All Known Subinterfaces:
SubLCons, SubLList
All Known Implementing Classes:
AbstractSubLArraySequence, AbstractSubLList, AbstractSubLSequence, SubLArrayList, SubLConsFacade, SubLConsPair, SubLNil, SubLString, SubLVector

public interface SubLSequence
extends SubLObject, java.lang.Cloneable


Field Summary
static int ALL_OCCURRENCES
           
static int MATCH_EVERYWHERE
           
static SubLSymbol NO_INIT_VALUE
           
static int NOT_FOUND
           
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
DEFAULT_EXCEEDED_HASH_VALUE, DO_CHECK_TYPES, DO_PARANOID_TYPE_CHECKING, MAX_HASH_DEPTH, MAX_HASH_LENGTH
 
Method Summary
 SubLSequence concatenate(SubLObject[] sequences)
           
 SubLSequence concatenate(SubLSequence seq1)
           
 int count(SubLObject item)
           
 int count(SubLObject item, BinaryFunction test)
           
 int count(SubLObject item, BinaryFunction test, UnaryFunction key)
           
 int count(SubLObject item, BinaryFunction test, UnaryFunction key, int start)
           
 int count(SubLObject item, BinaryFunction test, UnaryFunction key, int start, int end)
           
 int countIf(UnaryFunction test)
           
 int countIf(UnaryFunction test, UnaryFunction key)
           
 int countIf(UnaryFunction test, UnaryFunction key, int start)
           
 int countIf(UnaryFunction test, UnaryFunction key, int start, int end)
           
 SubLSequence delete(int startIndex, int endIndexExclusive)
           
 SubLSequence deleteItems(boolean[] itemsToDelete, int count)
           
 SubLSequence fill(SubLObject item)
           
 SubLSequence fill(SubLObject item, int start)
           
 SubLSequence fill(SubLObject item, int start, int end)
           
 SubLObject find(SubLObject item)
           
 SubLObject find(SubLObject item, BinaryFunction test)
           
 SubLObject find(SubLObject item, BinaryFunction test, UnaryFunction key)
           
 SubLObject find(SubLObject item, BinaryFunction test, UnaryFunction key, int start)
           
 SubLObject find(SubLObject item, BinaryFunction test, UnaryFunction key, int start, int end)
           
 SubLObject findIf(UnaryFunction test)
           
 SubLObject findIf(UnaryFunction test, UnaryFunction key)
           
 SubLObject findIf(UnaryFunction test, UnaryFunction key, int start)
           
 SubLObject findIf(UnaryFunction test, UnaryFunction key, int start, int end)
           
 SubLObject get(int index)
           
 int indexOfMismatch(SubLSequence otherSeq)
           
 int indexOfMismatch(SubLSequence otherSeq, BinaryFunction test)
           
 int indexOfMismatch(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key)
           
 int indexOfMismatch(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1)
           
 int indexOfMismatch(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1, int end1)
           
 int indexOfMismatch(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1, int end1, int start2)
           
 int indexOfMismatch(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1, int end1, int start2, int end2)
           
 SubLSequence makeSequenceFromJavaList(java.util.List<SubLObject> newBuf)
           
 SubLSequence merge(SubLSequence otherSeq, BinaryFunction test)
           
 SubLSequence merge(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key)
           
 int positionOf(SubLObject item)
           
 int positionOf(SubLObject item, BinaryFunction test)
           
 int positionOf(SubLObject item, BinaryFunction test, UnaryFunction key)
           
 int positionOf(SubLObject item, BinaryFunction test, UnaryFunction key, int start)
           
 int positionOf(SubLObject item, BinaryFunction test, UnaryFunction key, int start, int end)
           
 int positionOfIf(UnaryFunction test)
           
 int positionOfIf(UnaryFunction test, UnaryFunction key)
           
 int positionOfIf(UnaryFunction test, UnaryFunction key, int start)
           
 int positionOfIf(UnaryFunction test, UnaryFunction key, int start, int end)
           
 SubLObject reduce(BinaryFunction func)
           
 SubLObject reduce(BinaryFunction func, int start)
           
 SubLObject reduce(BinaryFunction func, int start, int end)
           
 SubLObject reduce(BinaryFunction func, int start, int end, SubLObject initialValue)
           
 SubLSequence remove(SubLObject item, boolean isDestructive)
           
 SubLSequence remove(SubLObject item, boolean isDestructive, BinaryFunction test)
           
 SubLSequence remove(SubLObject item, boolean isDestructive, BinaryFunction test, UnaryFunction key)
           
 SubLSequence remove(SubLObject item, boolean isDestructive, BinaryFunction test, UnaryFunction key, int start)
           
 SubLSequence remove(SubLObject item, boolean isDestructive, BinaryFunction test, UnaryFunction key, int start, int end)
           
 SubLSequence remove(SubLObject item, boolean isDestructive, BinaryFunction test, UnaryFunction key, int start, int end, int count)
           
 SubLSequence removeDuplicates(boolean isDestructive)
           
 SubLSequence removeDuplicates(boolean isDestructive, BinaryFunction test)
           
 SubLSequence removeDuplicates(boolean isDestructive, BinaryFunction test, UnaryFunction key)
           
 SubLSequence removeDuplicates(boolean isDestructive, BinaryFunction test, UnaryFunction key, int start)
           
 SubLSequence removeDuplicates(boolean isDestructive, BinaryFunction test, UnaryFunction key, int start, int end)
           
 SubLSequence removeIf(UnaryFunction test, boolean isDestructive)
           
 SubLSequence removeIf(UnaryFunction test, boolean isDestructive, UnaryFunction key)
           
 SubLSequence removeIf(UnaryFunction test, boolean isDestructive, UnaryFunction key, int start)
           
 SubLSequence removeIf(UnaryFunction test, boolean isDestructive, UnaryFunction key, int start, int end, int count)
           
 SubLSequence replace(SubLSequence seq)
           
 SubLSequence replace(SubLSequence seq, int start1)
           
 SubLSequence replace(SubLSequence seq, int start1, int end1)
           
 SubLSequence replace(SubLSequence seq, int start1, int end1, int start2)
           
 SubLSequence replace(SubLSequence seq, int start1, int end1, int start2, int end2)
           
 SubLSequence reverse(boolean isDestructive)
           
 int search(SubLSequence otherSeq)
           
 int search(SubLSequence otherSeq, BinaryFunction test)
           
 int search(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key)
           
 int search(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1)
           
 int search(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1, int end1)
           
 int search(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1, int end1, int start2)
           
 int search(SubLSequence otherSeq, BinaryFunction test, UnaryFunction key, int start1, int end1, int start2, int end2)
           
 void set(int index, SubLObject newVal)
           
 int size()
           
 SubLSequence sort(boolean isDestructive, BinaryFunction pred)
           
 SubLSequence sort(boolean isDestructive, BinaryFunction pred, UnaryFunction key)
           
 SubLSequence subSeq(int start)
           
 SubLSequence subSeq(int start, int end)
           
 SubLSequence substitute(SubLObject newItem, SubLObject oldItem, boolean isDestructive)
           
 SubLSequence substitute(SubLObject newItem, SubLObject oldItem, boolean isDestructive, BinaryFunction test)
           
 SubLSequence substitute(SubLObject newItem, SubLObject oldItem, boolean isDestructive, BinaryFunction test, UnaryFunction key)
           
 SubLSequence substitute(SubLObject newItem, SubLObject oldItem, boolean isDestructive, BinaryFunction test, UnaryFunction key, int start)
           
 SubLSequence substitute(SubLObject newItem, SubLObject oldItem, boolean isDestructive, BinaryFunction test, UnaryFunction key, int start, int end)
           
 SubLSequence substitute(SubLObject newItem, SubLObject oldItem, boolean isDestructive, BinaryFunction test, UnaryFunction key, int start, int end, int count)
           
 SubLSequence substituteIf(SubLObject newItem, UnaryFunction test, boolean isDestructive)
           
 SubLSequence substituteIf(SubLObject newItem, UnaryFunction test, boolean isDestructive, UnaryFunction key)
           
 SubLSequence substituteIf(SubLObject newItem, UnaryFunction test, boolean isDestructive, UnaryFunction key, int start)
           
 SubLSequence substituteIf(SubLObject newItem, UnaryFunction test, boolean isDestructive, UnaryFunction key, int start, int end)
           
 SubLSequence substituteIf(SubLObject newItem, UnaryFunction test, boolean isDestructive, UnaryFunction key, int start, int end, int count)
           
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
add, addKey, asArrayList, asConsList, bigIntegerValue, bind, canFastHash, charValue, checkType, checkTypeInternal, clone, currentBinding, dec, doubleValue, eighth, enforceType, enforceTypeInternal, eql, equal, equalp, eval, fifth, first, fourth, get, getCharacter, getField, getField0, getField1, getField10, getField11, getField12, getField13, getField14, getField15, getField16, getField17, getField18, getField19, getField2, getField20, getField3, getField4, getField5, getField6, getField7, getField8, getField9, getFileDesignator, getFunc, getNumSize, getStream, getString, getType, getTypeCode, hashCode, hasKey, inc, intValue, isArrayBased, isAtom, isBigIntegerBignum, isBignum, isBoolean, isChar, isCons, isDouble, isEnvironment, isError, isFixnum, isFunction, isFunctionSpec, isGuid, isHashtable, isHashtableIterator, isIntBignum, isInteger, isKeyhash, isKeyhashIterator, isKeyword, isList, isLock, isLongBignum, isMacroOperator, isNegative, isNil, isNumber, isPackage, isPositive, isProcess, isReadWriteLock, isRegexPattern, isSemaphore, isSequence, isStream, isString, isStructure, isSymbol, isVector, isZero, last, longValue, makeCopy, makeDeepCopy, mult, ninth, nthCdr, numE, numG, numGE, numL, numLE, put, rebind, remKey, remove, rest, second, setField, setField0, setField1, setField10, setField11, setField12, setField13, setField14, setField15, setField16, setField17, setField18, setField19, setField2, setField20, setField3, setField4, setField5, setField6, setField7, setField8, setField9, setFirst, setRest, seventh, sixth, sub, superHash, tenth, third, toChar, toCons, toDouble, toEnv, toFixnum, toGuid, toHashtable, toHashtableIterator, toInputBinaryStream, toInputStream, toInputTextStream, toInteger, toKeyhash, toKeyhashIterator, toList, toLock, toMacro, toNumber, toOutputBinaryStream, toOutputStream, toOutputTextStream, toPackage, toProcess, toReadWriteLock, toRegexPattern, toSemaphore, toSeq, toStr, toStruct, toSymbol, toTypeName, toVect
 

Field Detail

ALL_OCCURRENCES

static final int ALL_OCCURRENCES
See Also:
Constant Field Values

NOT_FOUND

static final int NOT_FOUND
See Also:
Constant Field Values

MATCH_EVERYWHERE

static final int MATCH_EVERYWHERE
See Also:
Constant Field Values

NO_INIT_VALUE

static final SubLSymbol NO_INIT_VALUE
Method Detail

size

int size()
Specified by:
size in interface SubLObject

get

SubLObject get(int index)
Specified by:
get in interface SubLObject

set

void set(int index,
         SubLObject newVal)
Specified by:
set in interface SubLObject

subSeq

SubLSequence subSeq(int start)

subSeq

SubLSequence subSeq(int start,
                    int end)

reverse

SubLSequence reverse(boolean isDestructive)
Specified by:
reverse in interface SubLObject

concatenate

SubLSequence concatenate(SubLSequence seq1)

concatenate

SubLSequence concatenate(SubLObject[] sequences)

reduce

SubLObject reduce(BinaryFunction func)

reduce

SubLObject reduce(BinaryFunction func,
                  int start)

reduce

SubLObject reduce(BinaryFunction func,
                  int start,
                  int end)

reduce

SubLObject reduce(BinaryFunction func,
                  int start,
                  int end,
                  SubLObject initialValue)

fill

SubLSequence fill(SubLObject item)

fill

SubLSequence fill(SubLObject item,
                  int start)

fill

SubLSequence fill(SubLObject item,
                  int start,
                  int end)

remove

SubLSequence remove(SubLObject item,
                    boolean isDestructive)

remove

SubLSequence remove(SubLObject item,
                    boolean isDestructive,
                    BinaryFunction test)

remove

SubLSequence remove(SubLObject item,
                    boolean isDestructive,
                    BinaryFunction test,
                    UnaryFunction key)

remove

SubLSequence remove(SubLObject item,
                    boolean isDestructive,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start)

remove

SubLSequence remove(SubLObject item,
                    boolean isDestructive,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start,
                    int end)

remove

SubLSequence remove(SubLObject item,
                    boolean isDestructive,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start,
                    int end,
                    int count)

removeIf

SubLSequence removeIf(UnaryFunction test,
                      boolean isDestructive)

removeIf

SubLSequence removeIf(UnaryFunction test,
                      boolean isDestructive,
                      UnaryFunction key)

removeIf

SubLSequence removeIf(UnaryFunction test,
                      boolean isDestructive,
                      UnaryFunction key,
                      int start)

removeIf

SubLSequence removeIf(UnaryFunction test,
                      boolean isDestructive,
                      UnaryFunction key,
                      int start,
                      int end,
                      int count)

removeDuplicates

SubLSequence removeDuplicates(boolean isDestructive)

removeDuplicates

SubLSequence removeDuplicates(boolean isDestructive,
                              BinaryFunction test)

removeDuplicates

SubLSequence removeDuplicates(boolean isDestructive,
                              BinaryFunction test,
                              UnaryFunction key)

removeDuplicates

SubLSequence removeDuplicates(boolean isDestructive,
                              BinaryFunction test,
                              UnaryFunction key,
                              int start)

removeDuplicates

SubLSequence removeDuplicates(boolean isDestructive,
                              BinaryFunction test,
                              UnaryFunction key,
                              int start,
                              int end)

substitute

SubLSequence substitute(SubLObject newItem,
                        SubLObject oldItem,
                        boolean isDestructive)

substitute

SubLSequence substitute(SubLObject newItem,
                        SubLObject oldItem,
                        boolean isDestructive,
                        BinaryFunction test)

substitute

SubLSequence substitute(SubLObject newItem,
                        SubLObject oldItem,
                        boolean isDestructive,
                        BinaryFunction test,
                        UnaryFunction key)

substitute

SubLSequence substitute(SubLObject newItem,
                        SubLObject oldItem,
                        boolean isDestructive,
                        BinaryFunction test,
                        UnaryFunction key,
                        int start)

substitute

SubLSequence substitute(SubLObject newItem,
                        SubLObject oldItem,
                        boolean isDestructive,
                        BinaryFunction test,
                        UnaryFunction key,
                        int start,
                        int end)

substitute

SubLSequence substitute(SubLObject newItem,
                        SubLObject oldItem,
                        boolean isDestructive,
                        BinaryFunction test,
                        UnaryFunction key,
                        int start,
                        int end,
                        int count)

substituteIf

SubLSequence substituteIf(SubLObject newItem,
                          UnaryFunction test,
                          boolean isDestructive)

substituteIf

SubLSequence substituteIf(SubLObject newItem,
                          UnaryFunction test,
                          boolean isDestructive,
                          UnaryFunction key)

substituteIf

SubLSequence substituteIf(SubLObject newItem,
                          UnaryFunction test,
                          boolean isDestructive,
                          UnaryFunction key,
                          int start)

substituteIf

SubLSequence substituteIf(SubLObject newItem,
                          UnaryFunction test,
                          boolean isDestructive,
                          UnaryFunction key,
                          int start,
                          int end)

substituteIf

SubLSequence substituteIf(SubLObject newItem,
                          UnaryFunction test,
                          boolean isDestructive,
                          UnaryFunction key,
                          int start,
                          int end,
                          int count)

find

SubLObject find(SubLObject item)

find

SubLObject find(SubLObject item,
                BinaryFunction test)

find

SubLObject find(SubLObject item,
                BinaryFunction test,
                UnaryFunction key)

find

SubLObject find(SubLObject item,
                BinaryFunction test,
                UnaryFunction key,
                int start)

find

SubLObject find(SubLObject item,
                BinaryFunction test,
                UnaryFunction key,
                int start,
                int end)

findIf

SubLObject findIf(UnaryFunction test)

findIf

SubLObject findIf(UnaryFunction test,
                  UnaryFunction key)

findIf

SubLObject findIf(UnaryFunction test,
                  UnaryFunction key,
                  int start)

findIf

SubLObject findIf(UnaryFunction test,
                  UnaryFunction key,
                  int start,
                  int end)

merge

SubLSequence merge(SubLSequence otherSeq,
                   BinaryFunction test)

merge

SubLSequence merge(SubLSequence otherSeq,
                   BinaryFunction test,
                   UnaryFunction key)

positionOf

int positionOf(SubLObject item)

positionOf

int positionOf(SubLObject item,
               BinaryFunction test)

positionOf

int positionOf(SubLObject item,
               BinaryFunction test,
               UnaryFunction key)

positionOf

int positionOf(SubLObject item,
               BinaryFunction test,
               UnaryFunction key,
               int start)

positionOf

int positionOf(SubLObject item,
               BinaryFunction test,
               UnaryFunction key,
               int start,
               int end)

positionOfIf

int positionOfIf(UnaryFunction test)

positionOfIf

int positionOfIf(UnaryFunction test,
                 UnaryFunction key)

positionOfIf

int positionOfIf(UnaryFunction test,
                 UnaryFunction key,
                 int start)

positionOfIf

int positionOfIf(UnaryFunction test,
                 UnaryFunction key,
                 int start,
                 int end)

count

int count(SubLObject item)

count

int count(SubLObject item,
          BinaryFunction test)

count

int count(SubLObject item,
          BinaryFunction test,
          UnaryFunction key)

count

int count(SubLObject item,
          BinaryFunction test,
          UnaryFunction key,
          int start)

count

int count(SubLObject item,
          BinaryFunction test,
          UnaryFunction key,
          int start,
          int end)

countIf

int countIf(UnaryFunction test)

countIf

int countIf(UnaryFunction test,
            UnaryFunction key)

countIf

int countIf(UnaryFunction test,
            UnaryFunction key,
            int start)

countIf

int countIf(UnaryFunction test,
            UnaryFunction key,
            int start,
            int end)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq,
                    BinaryFunction test)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq,
                    BinaryFunction test,
                    UnaryFunction key)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start1)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start1,
                    int end1)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start1,
                    int end1,
                    int start2)

indexOfMismatch

int indexOfMismatch(SubLSequence otherSeq,
                    BinaryFunction test,
                    UnaryFunction key,
                    int start1,
                    int end1,
                    int start2,
                    int end2)

search

int search(SubLSequence otherSeq)

search

int search(SubLSequence otherSeq,
           BinaryFunction test)

search

int search(SubLSequence otherSeq,
           BinaryFunction test,
           UnaryFunction key)

search

int search(SubLSequence otherSeq,
           BinaryFunction test,
           UnaryFunction key,
           int start1)

search

int search(SubLSequence otherSeq,
           BinaryFunction test,
           UnaryFunction key,
           int start1,
           int end1)

search

int search(SubLSequence otherSeq,
           BinaryFunction test,
           UnaryFunction key,
           int start1,
           int end1,
           int start2)

search

int search(SubLSequence otherSeq,
           BinaryFunction test,
           UnaryFunction key,
           int start1,
           int end1,
           int start2,
           int end2)

replace

SubLSequence replace(SubLSequence seq)

replace

SubLSequence replace(SubLSequence seq,
                     int start1)

replace

SubLSequence replace(SubLSequence seq,
                     int start1,
                     int end1)

replace

SubLSequence replace(SubLSequence seq,
                     int start1,
                     int end1,
                     int start2)

replace

SubLSequence replace(SubLSequence seq,
                     int start1,
                     int end1,
                     int start2,
                     int end2)

sort

SubLSequence sort(boolean isDestructive,
                  BinaryFunction pred)

sort

SubLSequence sort(boolean isDestructive,
                  BinaryFunction pred,
                  UnaryFunction key)

deleteItems

SubLSequence deleteItems(boolean[] itemsToDelete,
                         int count)

delete

SubLSequence delete(int startIndex,
                    int endIndexExclusive)

makeSequenceFromJavaList

SubLSequence makeSequenceFromJavaList(java.util.List<SubLObject> newBuf)