public abstract class TextSegmentSet<T> extends Object implements Iterable<T>
| Constructor and Description |
|---|
TextSegmentSet(com.google.common.base.Function<? super T,? extends ITextSegment> region,
com.google.common.base.Function<? super T,String> title) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T segment) |
abstract void |
add(T segment,
IMerger<T> merger) |
abstract T |
get(T segment) |
protected ITextSegment |
getRegion(T t) |
com.google.common.base.Function<? super T,? extends ITextSegment> |
getRegionAccess() |
protected String |
getTitle(T t) |
IdentityHashMap<T,RegionTrace> |
getTraces() |
protected void |
handleConflict(List<T> conflicts,
Exception cause) |
protected boolean |
isConflict(ITextSegment region1,
ITextSegment region2) |
protected boolean |
isConflict(T t1,
T t2) |
String |
toString() |
public TextSegmentSet(com.google.common.base.Function<? super T,? extends ITextSegment> region, com.google.common.base.Function<? super T,String> title)
public void add(T segment) throws ConflictingRegionsException
ConflictingRegionsExceptionpublic abstract void add(T segment, IMerger<T> merger) throws ConflictingRegionsException
ConflictingRegionsExceptionprotected ITextSegment getRegion(T t)
public com.google.common.base.Function<? super T,? extends ITextSegment> getRegionAccess()
public IdentityHashMap<T,RegionTrace> getTraces()
protected void handleConflict(List<T> conflicts, Exception cause) throws ConflictingRegionsException
ConflictingRegionsExceptionprotected boolean isConflict(ITextSegment region1, ITextSegment region2)
Copyright © 2015. All Rights Reserved.