org.chromattic.common.collection.delta
Class AbstractInsertionSegment<E>

java.lang.Object
  extended by org.chromattic.common.collection.delta.Segment<E>
      extended by org.chromattic.common.collection.delta.AbstractInsertionSegment<E>
Direct Known Subclasses:
HeadSegment, InsertionSegment, TailSegment

public abstract class AbstractInsertionSegment<E>
extends Segment<E>

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
AbstractInsertionSegment()
           
 
Method Summary
protected  void format(StringBuilder builder)
           
protected  void localAdd(int index, E element)
           
protected  boolean localCanAdd(int index)
           
protected  E localGet(int index)
           
 Iterator<E> localIterator()
           
protected  E localRemove(int index)
           
protected  int localSize()
           
 
Methods inherited from class org.chromattic.common.collection.delta.Segment
add, complexity, format, get, iterator, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInsertionSegment

public AbstractInsertionSegment()
Method Detail

localGet

protected E localGet(int index)
Specified by:
localGet in class Segment<E>

localSize

protected int localSize()
Specified by:
localSize in class Segment<E>

localCanAdd

protected boolean localCanAdd(int index)
Specified by:
localCanAdd in class Segment<E>

localAdd

protected void localAdd(int index,
                        E element)
Specified by:
localAdd in class Segment<E>

localRemove

protected E localRemove(int index)
Specified by:
localRemove in class Segment<E>

localIterator

public Iterator<E> localIterator()
Specified by:
localIterator in class Segment<E>

format

protected void format(StringBuilder builder)
Specified by:
format in class Segment<E>


Copyright © 2009 eXo Platform SAS. All Rights Reserved.