Package org.eclipse.emf.common.util
Class URI.URIPool.URIPoolAccessUnitBase
java.lang.Object
org.eclipse.emf.common.util.Pool.AccessUnit<URI>
org.eclipse.emf.common.util.URI.URIPool.URIPoolAccessUnitBase
- Direct Known Subclasses:
URI.URIPool.FileAccessUnit,URI.URIPool.PlatformAccessUnit,URI.URIPool.StringAccessUnit,URI.URIPool.URIComponentsAccessUnit
- Enclosing class:
- URI.URIPool
A based access unit for this pool.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.Pool.AccessUnit
Pool.AccessUnit.Queue<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionA local access unit for exclusive use inintern(char[], int, int).protected CommonUtil.StringPool.StringAccessUnitA local access unit for exclusive for normalizing the scheme inintern(String),intern(boolean, String), andURI.URIPool.StringAccessUnit.parseIntoURI(String).An access unit for exclusive use ininternArray(String[], int, int, int).protected CommonUtil.StringPool.StringPoolEntryThe string pool entry found during the most recent use ofsubstringAccessUnit.A local access unit for exclusive use inintern(String, int, int)andintern(String, int, int, int).Fields inherited from class org.eclipse.emf.common.util.Pool.AccessUnit
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URIgetValue()protected Stringprotected Stringintern(char[] characters, int offset, int count) protected Stringintern(char[] characters, int offset, int count, int hashCode) protected Stringprotected Stringprotected Stringprotected String[]internArray(String[] segments, int offset, int segmentCount, int hashCode) voidreset(boolean isExclusive) Prepare the access unit for reuse.protected booleansetArbitraryValue(Object value) protected voidMethods inherited from class org.eclipse.emf.common.util.Pool.AccessUnit
add, getEntry, getInternalizedValue, match, matches, rematches
-
Field Details
-
charactersAccessUnit
A local access unit for exclusive use inintern(char[], int, int). -
stringAccessUnit
A local access unit for exclusive for normalizing the scheme inintern(String),intern(boolean, String), andURI.URIPool.StringAccessUnit.parseIntoURI(String). -
stringPoolEntry
The string pool entry found during the most recent use ofsubstringAccessUnit. -
substringAccessUnit
A local access unit for exclusive use inintern(String, int, int)andintern(String, int, int, int). ItstringPoolEntrythe string pool entry that was matched whenCommonUtil.StringPool.SubstringAccessUnit.reset(boolean)is called. -
stringArraySegmentsAndSegmentCountAccessUnit
protected SegmentSequence.StringArrayPool.SegmentsAndSegmentCountAccessUnit stringArraySegmentsAndSegmentCountAccessUnitAn access unit for exclusive use ininternArray(String[], int, int, int).
-
-
Constructor Details
-
URIPoolAccessUnitBase
-
-
Method Details
-
getValue
- Specified by:
getValuein classPool.AccessUnit<URI>
-
setValue
- Specified by:
setValuein classPool.AccessUnit<URI>
-
setArbitraryValue
- Specified by:
setArbitraryValuein classPool.AccessUnit<URI>
-
intern
-
intern
-
intern
-
intern
-
intern
-
intern
-
internArray
-
reset
public void reset(boolean isExclusive) Description copied from class:Pool.AccessUnitPrepare the access unit for reuse. In particular remove the hard references to each element in both thePool.AccessUnit.valuesandPool.AccessUnit.entriesand then reset thePool.AccessUnit.valuesLengthto 0- Overrides:
resetin classPool.AccessUnit<URI>
-