java.lang.Object
org.bitlap.roaringbitmap.buffer.MappeableContainer
org.bitlap.roaringbitmap.buffer.MappeableRunContainer
- 所有已实现的接口:
Externalizable,Serializable,Cloneable,Iterable<Character>,WordStorage<MappeableContainer>
This container takes the form of runs of consecutive values (effectively, run-length encoding).
Uses a CharBuffer to store data, unlike org.bitlap.roaringbitmap.RunContainer. Otherwise similar.
Adding and removing content from this container might make it wasteful so regular calls to
"runOptimize" might be warranted.
- 另请参阅:
-
字段概要
字段从类继承的字段 org.bitlap.roaringbitmap.buffer.MappeableContainer
ContainerNames -
构造器概要
构造器限定符构造器说明Create a container with default capacityMappeableRunContainer(int capacity) Create an array container with specified capacityMappeableRunContainer(int firstOfRun, int lastOfRun) Create an run container with a run of ones from firstOfRun to lastOfRun.MappeableRunContainer(CharBuffer array, int numRuns) Construct a new RunContainer backed by the provided CharBuffer.protectedMappeableRunContainer(MappeableArrayContainer arr, int nbrRuns) protectedMappeableRunContainer(MappeableBitmapContainer bc, int nbrRuns) Creates a new container from a non-mappeable one. -
方法概要
修饰符和类型方法说明add(char k) Add a char to the container.add(int begin, int end) Return a new container with all chars in [begin,end) added using an unsigned interpretation.Computes the bitwise AND of this container with another (intersection).Computes the bitwise AND of this container with another (intersection).Computes the bitwise AND of this container with another (intersection).intintintvoidandInto(long[] bits) Computes the intersection of this container with the bits present in the array, modifying the array.Computes the bitwise ANDNOT of this container with another (difference).Computes the bitwise ANDNOT of this container with another (difference).Computes the bitwise ANDNOT of this container with another (difference).voidclear()Empties the containerclone()booleancontains(char x) Checks whether the contain contains the provided valuebooleancontains(int minimum, int supremum) Checks whether the container contains the entire rangestatic booleancontains(ByteBuffer buf, int position, char x, int numRuns) Checks whether the run container contains x.protected booleancontains(MappeableArrayContainer arrayContainer) protected booleancontains(MappeableBitmapContainer bitmapContainer) protected booleancontains(MappeableRunContainer runContainer) booleanvoidfillLeastSignificant16bits(int[] x, int i, int mask) Fill the least significant 16 bits of the integer array, starting at index index, with the char values from this container.intfirst()Get the first integer held in the containerflip(char x) Add a char to the container if it is not present, otherwise remove it.voidforEach(char msb, IntConsumer ic) Iterate through the values of this container and pass them along to the IntConsumer, using msb as the 16 most significant bits.static MappeableRunContainerfull()protected intSize of the underlying arrayprotected static intgetArraySizeInBytes(int nbrruns) Gets an iterator to visit the contents of the container in batchesintComputes the distinct number of char values in the container.Iterator to visit the char values in the container in ascending order.chargetLength(int index) Gets the length of the run at the index.Iterator to visit the char values in the container in descending order.intComputes an estimate of the memory usage of this container.chargetValue(int index) Gets the value of the first element of the run at the index.inthashCode()iadd(int begin, int end) Add all chars in [begin,end) using an unsigned interpretation.Computes the in-place bitwise AND of this container with another (intersection).Computes the in-place bitwise AND of this container with another (intersection).Computes the in-place bitwise AND of this container with another (intersection).Computes the in-place bitwise ANDNOT of this container with another (difference).Computes the in-place bitwise ANDNOT of this container with another (difference).Computes the in-place bitwise ANDNOT of this container with another (difference).inot(int rangeStart, int rangeEnd) Computes the in-place bitwise NOT of this container (complement).booleanintersects(int minimum, int supremum) Checks if the container intersects with a rangebooleanReturns true if the current container intersects the other container.booleanReturns true if the current container intersects the other container.booleanReturns true if the current container intersects the other container.Computes the in-place bitwise OR of this container with another (union).Computes the in-place bitwise OR of this container with another (union).Computes the in-place bitwise OR of this container with another (union).iremove(int begin, int end) Remove chars in [begin,end) using an unsigned interpretation.protected booleanbooleanisEmpty()Checks whether the container is empty or not.booleanisFull()Checks whether the container is full or not.iterator()Computes the in-place bitwise XOR of this container with another (symmetric difference).Computes the in-place bitwise XOR of this container with another (symmetric difference).Computes the in-place bitwise XOR of this container with another (symmetric difference).intlast()Get the last integer held in the containerprotected MappeableContainerlimit(int maxcardinality) Create a new MappeableContainer containing at most maxcardinality integers.intnextAbsentValue(char fromValue) Gets the first absent value greater than or equal to the lower bound.intnextValue(char fromValue) Gets the first value greater than or equal to the lower bound, or -1 if no such value exists.not(int rangeStart, int rangeEnd) Computes the bitwise NOT of this container (complement).intComputes the bitwise OR of this container with another (union).Computes the bitwise OR of this container with another (union).Computes the bitwise OR of this container with another (union).voidorInto(long[] bits) Computes the union of this container with the bits present in the array, modifying the array.intpreviousAbsentValue(char fromValue) Gets the last value less than or equal to the upper bound.intpreviousValue(char fromValue) Gets the last value less than or equal to the upper bound, or -1 if no such value exists.intrank(char lowbits) Rank returns the number of integers that are smaller or equal to x (Rank(infinity) would be GetCardinality()).voidremove(char x) Remove the char from this container.remove(int begin, int end) Return a new container with all chars in [begin,end) remove using an unsigned interpretation.voidremoveFrom(long[] bits) Computes the intersection of the negation of this container with the bits present in the array, modifying the array.The output of a lazyOR or lazyIOR might be an invalid container, this should be called on it.Convert to Array or Bitmap container if the serialized form would be shortercharselect(int j) Return the jth valueintReport the number of bytes required to serialize this container.protected static intserializedSizeInBytes(int numberOfRuns) Convert the current container to a BitmapContainer, if a conversion is needed.char[]Create a copy of the content of this container as a char array.Convert to a non-mappeable container.toString()voidtrim()If possible, recover wasted memory.protected voidwriteArray(DataOutput out) Write just the underlying array.protected voidwriteArray(ByteBuffer buffer) Write just the underlying array.voidComputes the bitwise XOR of this container with another (symmetric difference).Computes the bitwise XOR of this container with another (symmetric difference).Computes the bitwise XOR of this container with another (symmetric difference).从类继承的方法 org.bitlap.roaringbitmap.buffer.MappeableContainer
and, andCardinality, andNot, assertNonEmpty, contains, getContainerName, iand, iandNot, intersects, ior, iorNot, ixor, lazyIOR, lazyOR, or, orNot, rangeOfOnes, xor, xorCardinality从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
字段详细资料
-
valueslength
-
nbrruns
protected int nbrruns
-
-
构造器详细资料
-
MappeableRunContainer
public MappeableRunContainer()Create a container with default capacity -
MappeableRunContainer
public MappeableRunContainer(int capacity) Create an array container with specified capacity- 参数:
capacity- The capacity of the container
-
MappeableRunContainer
-
MappeableRunContainer
public MappeableRunContainer(int firstOfRun, int lastOfRun) Create an run container with a run of ones from firstOfRun to lastOfRun.- 参数:
firstOfRun- first indexlastOfRun- last index (range is exclusive)
-
MappeableRunContainer
-
MappeableRunContainer
Creates a new container from a non-mappeable one. This copies the data.- 参数:
bc- the original container
-
MappeableRunContainer
Construct a new RunContainer backed by the provided CharBuffer. Note that if you modify the RunContainer a new CharBuffer may be produced.- 参数:
array- CharBuffer where the data is storednumRuns- number of runs (each using 2 chars in the buffer)
-
-
方法详细资料
-
getArraySizeInBytes
protected static int getArraySizeInBytes(int nbrruns) -
serializedSizeInBytes
protected static int serializedSizeInBytes(int numberOfRuns) -
add
从类复制的说明:MappeableContainerReturn a new container with all chars in [begin,end) added using an unsigned interpretation.- 指定者:
add在类中MappeableContainer- 参数:
begin- start of range (inclusive)end- end of range (exclusive)- 返回:
- the new container
-
add
从类复制的说明:MappeableContainerAdd a char to the container. May generate a new container.- 指定者:
add在接口中WordStorage<MappeableContainer>- 指定者:
add在类中MappeableContainer- 参数:
k- char to be added- 返回:
- the new container
-
isEmpty
public boolean isEmpty()从类复制的说明:MappeableContainerChecks whether the container is empty or not.- 指定者:
isEmpty在接口中WordStorage<MappeableContainer>- 指定者:
isEmpty在类中MappeableContainer- 返回:
- true if the container is empty.
-
and
从类复制的说明:MappeableContainerComputes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.- 指定者:
and在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
and
从类复制的说明:MappeableContainerComputes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.- 指定者:
and在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
and
从类复制的说明:MappeableContainerComputes the bitwise AND of this container with another (intersection). This container as well as the provided container are left unaffected.- 指定者:
and在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
andNot
从类复制的说明:MappeableContainerComputes the bitwise ANDNOT of this container with another (difference). This container as well as the provided container are left unaffected.- 指定者:
andNot在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
andNot
从类复制的说明:MappeableContainerComputes the bitwise ANDNOT of this container with another (difference). This container as well as the provided container are left unaffected.- 指定者:
andNot在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
andNot
从类复制的说明:MappeableContainerComputes the bitwise ANDNOT of this container with another (difference). This container as well as the provided container are left unaffected.- 指定者:
andNot在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
clear
public void clear()从类复制的说明:MappeableContainerEmpties the container- 指定者:
clear在类中MappeableContainer
-
clone
- 指定者:
clone在类中MappeableContainer
-
contains
public boolean contains(char x) 从类复制的说明:MappeableContainerChecks whether the contain contains the provided value- 指定者:
contains在类中MappeableContainer- 参数:
x- value to check- 返回:
- whether the value is in the container
-
contains
Checks whether the run container contains x.- 参数:
buf- underlying ByteBufferposition- starting position of the container in the ByteBufferx- target 16-bit valuenumRuns- number of runs- 返回:
- whether the run container contains x
-
equals
-
fillLeastSignificant16bits
public void fillLeastSignificant16bits(int[] x, int i, int mask) 从类复制的说明:MappeableContainerFill the least significant 16 bits of the integer array, starting at index index, with the char values from this container. The caller is responsible to allocate enough room. The most significant 16 bits of each integer are given by the most significant bits of the provided mask.- 指定者:
fillLeastSignificant16bits在类中MappeableContainer- 参数:
x- provided arrayi- starting indexmask- indicates most significant bits
-
flip
从类复制的说明:MappeableContainerAdd a char to the container if it is not present, otherwise remove it. May generate a new container.- 指定者:
flip在类中MappeableContainer- 参数:
x- char to be added- 返回:
- the new container
-
getArraySizeInBytes
protected int getArraySizeInBytes()从类复制的说明:MappeableContainerSize of the underlying array- 指定者:
getArraySizeInBytes在类中MappeableContainer- 返回:
- size in bytes
-
getCardinality
public int getCardinality()从类复制的说明:MappeableContainerComputes the distinct number of char values in the container. Can be expected to run in constant time.- 指定者:
getCardinality在类中MappeableContainer- 返回:
- the cardinality
-
getLength
public char getLength(int index) Gets the length of the run at the index.- 参数:
index- the index of the run.- 返回:
- the length of the run at the index.
- 抛出:
ArrayIndexOutOfBoundsException- if index is negative or larger than the index of the last run.
-
getReverseCharIterator
从类复制的说明:MappeableContainerIterator to visit the char values in the container in descending order.- 指定者:
getReverseCharIterator在类中MappeableContainer- 返回:
- iterator
-
getCharIterator
从类复制的说明:MappeableContainerIterator to visit the char values in the container in ascending order.- 指定者:
getCharIterator在类中MappeableContainer- 返回:
- iterator
-
getBatchIterator
从类复制的说明:MappeableContainerGets an iterator to visit the contents of the container in batches- 指定者:
getBatchIterator在类中MappeableContainer- 返回:
- iterator
-
getSizeInBytes
public int getSizeInBytes()从类复制的说明:MappeableContainerComputes an estimate of the memory usage of this container. The estimate is not meant to be exact.- 指定者:
getSizeInBytes在类中MappeableContainer- 返回:
- estimated memory usage in bytes
-
getValue
public char getValue(int index) Gets the value of the first element of the run at the index.- 参数:
index- the index of the run.- 返回:
- the value of the first element of the run at the index.
- 抛出:
ArrayIndexOutOfBoundsException- if index is negative or larger than the index of the last run.
-
hashCode
public int hashCode() -
iadd
从类复制的说明:MappeableContainerAdd all chars in [begin,end) using an unsigned interpretation. May generate a new container.- 指定者:
iadd在类中MappeableContainer- 参数:
begin- start of range (inclusive)end- end of range (exclusive)- 返回:
- the new container
-
iand
从类复制的说明:MappeableContainerComputes the in-place bitwise AND of this container with another (intersection). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
iand在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
iand
从类复制的说明:MappeableContainerComputes the in-place bitwise AND of this container with another (intersection). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
iand在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
iand
从类复制的说明:MappeableContainerComputes the in-place bitwise AND of this container with another (intersection). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
iand在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
iandNot
从类复制的说明:MappeableContainerComputes the in-place bitwise ANDNOT of this container with another (difference). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
iandNot在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
iandNot
从类复制的说明:MappeableContainerComputes the in-place bitwise ANDNOT of this container with another (difference). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
iandNot在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
iandNot
从类复制的说明:MappeableContainerComputes the in-place bitwise ANDNOT of this container with another (difference). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
iandNot在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
inot
从类复制的说明:MappeableContainerComputes the in-place bitwise NOT of this container (complement). Only those bits within the range are affected. The current container is generally modified. May generate a new container.- 指定者:
inot在类中MappeableContainer- 参数:
rangeStart- beginning of range (inclusive); 0 is beginning of this container.rangeEnd- ending of range (exclusive)- 返回:
- (partially) completmented container
-
intersects
从类复制的说明:MappeableContainerReturns true if the current container intersects the other container.- 指定者:
intersects在类中MappeableContainer- 参数:
x- other container- 返回:
- whether they intersect
-
intersects
从类复制的说明:MappeableContainerReturns true if the current container intersects the other container.- 指定者:
intersects在类中MappeableContainer- 参数:
x- other container- 返回:
- whether they intersect
-
intersects
从类复制的说明:MappeableContainerReturns true if the current container intersects the other container.- 指定者:
intersects在类中MappeableContainer- 参数:
x- other container- 返回:
- whether they intersect
-
ior
从类复制的说明:MappeableContainerComputes the in-place bitwise OR of this container with another (union). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
ior在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
ior
从类复制的说明:MappeableContainerComputes the in-place bitwise OR of this container with another (union). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
ior在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
ior
从类复制的说明:MappeableContainerComputes the in-place bitwise OR of this container with another (union). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
ior在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
iremove
从类复制的说明:MappeableContainerRemove chars in [begin,end) using an unsigned interpretation. May generate a new container.- 指定者:
iremove在类中MappeableContainer- 参数:
begin- start of range (inclusive)end- end of range (exclusive)- 返回:
- the new container
-
isArrayBacked
protected boolean isArrayBacked()- 指定者:
isArrayBacked在类中MappeableContainer
-
isFull
public boolean isFull()从类复制的说明:MappeableContainerChecks whether the container is full or not.- 指定者:
isFull在类中MappeableContainer- 返回:
- true if the container is full.
-
orInto
public void orInto(long[] bits) 从类复制的说明:MappeableContainerComputes the union of this container with the bits present in the array, modifying the array.- 指定者:
orInto在类中MappeableContainer- 参数:
bits- a 1024 element array to be interpreted as a bit set
-
andInto
public void andInto(long[] bits) 从类复制的说明:MappeableContainerComputes the intersection of this container with the bits present in the array, modifying the array.- 指定者:
andInto在类中MappeableContainer- 参数:
bits- a 1024 element array to be interpreted as a bit set
-
removeFrom
public void removeFrom(long[] bits) 从类复制的说明:MappeableContainerComputes the intersection of the negation of this container with the bits present in the array, modifying the array.- 指定者:
removeFrom在类中MappeableContainer- 参数:
bits- a 1024 element array to be interpreted as a bit set
-
full
-
iterator
-
ixor
从类复制的说明:MappeableContainerComputes the in-place bitwise XOR of this container with another (symmetric difference). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
ixor在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
ixor
从类复制的说明:MappeableContainerComputes the in-place bitwise XOR of this container with another (symmetric difference). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
ixor在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
ixor
从类复制的说明:MappeableContainerComputes the in-place bitwise XOR of this container with another (symmetric difference). The current container is generally modified, whereas the provided container (x) is unaffected. May generate a new container.- 指定者:
ixor在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
lazyor
-
limit
从类复制的说明:MappeableContainerCreate a new MappeableContainer containing at most maxcardinality integers.- 指定者:
limit在类中MappeableContainer- 参数:
maxcardinality- maximal cardinality- 返回:
- a new bitmap with cardinality no more than maxcardinality
-
not
从类复制的说明:MappeableContainerComputes the bitwise NOT of this container (complement). Only those bits within the range are affected. The current container is left unaffected.- 指定者:
not在类中MappeableContainer- 参数:
rangeStart- beginning of range (inclusive); 0 is beginning of this container.rangeEnd- ending of range (exclusive)- 返回:
- (partially) completmented container
-
numberOfRuns
public int numberOfRuns() -
or
从类复制的说明:MappeableContainerComputes the bitwise OR of this container with another (union). This container as well as the provided container are left unaffected.- 指定者:
or在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
or
从类复制的说明:MappeableContainerComputes the bitwise OR of this container with another (union). This container as well as the provided container are left unaffected.- 指定者:
or在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
or
从类复制的说明:MappeableContainerComputes the bitwise OR of this container with another (union). This container as well as the provided container are left unaffected.- 指定者:
or在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
rank
public int rank(char lowbits) 从类复制的说明:MappeableContainerRank returns the number of integers that are smaller or equal to x (Rank(infinity) would be GetCardinality()).- 指定者:
rank在类中MappeableContainer- 参数:
lowbits- upper limit- 返回:
- the rank
-
readExternal
- 指定者:
readExternal在接口中Externalizable- 抛出:
IOException
-
remove
从类复制的说明:MappeableContainerReturn a new container with all chars in [begin,end) remove using an unsigned interpretation.- 指定者:
remove在类中MappeableContainer- 参数:
begin- start of range (inclusive)end- end of range (exclusive)- 返回:
- the new container
-
remove
从类复制的说明:MappeableContainerRemove the char from this container. May create a new container.- 指定者:
remove在类中MappeableContainer- 参数:
x- to be removed- 返回:
- New container
-
repairAfterLazy
从类复制的说明:MappeableContainerThe output of a lazyOR or lazyIOR might be an invalid container, this should be called on it.- 指定者:
repairAfterLazy在类中MappeableContainer- 返回:
- a new valid container
-
runOptimize
Convert to Array or Bitmap container if the serialized form would be shorter- 指定者:
runOptimize在接口中WordStorage<MappeableContainer>- 指定者:
runOptimize在类中MappeableContainer- 返回:
- the new container
-
select
public char select(int j) 从类复制的说明:MappeableContainerReturn the jth value- 指定者:
select在类中MappeableContainer- 参数:
j- index of the value- 返回:
- the value
-
serializedSizeInBytes
public int serializedSizeInBytes()从类复制的说明:MappeableContainerReport the number of bytes required to serialize this container.- 指定者:
serializedSizeInBytes在类中MappeableContainer- 返回:
- the size in bytes
-
toContainer
从类复制的说明:MappeableContainerConvert to a non-mappeable container.- 指定者:
toContainer在类中MappeableContainer- 返回:
- the non-mappeable container
-
toCharArray
public char[] toCharArray()Create a copy of the content of this container as a char array. This creates a copy.- 返回:
- copy of the content as a char array
-
toString
-
trim
public void trim()从类复制的说明:MappeableContainerIf possible, recover wasted memory.- 指定者:
trim在类中MappeableContainer
-
writeArray
从类复制的说明:MappeableContainerWrite just the underlying array.- 指定者:
writeArray在类中MappeableContainer- 参数:
out- output stream- 抛出:
IOException- in case of failure
-
writeArray
从类复制的说明:MappeableContainerWrite just the underlying array.- 指定者:
writeArray在类中MappeableContainer- 参数:
buffer- the buffer to write to
-
writeExternal
- 指定者:
writeExternal在接口中Externalizable- 抛出:
IOException
-
xor
从类复制的说明:MappeableContainerComputes the bitwise XOR of this container with another (symmetric difference). This container as well as the provided container are left unaffected.- 指定者:
xor在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
xor
从类复制的说明:MappeableContainerComputes the bitwise XOR of this container with another (symmetric difference). This container as well as the provided container are left unaffected.- 指定者:
xor在类中MappeableContainer- 参数:
x- other container- 返回:
- aggregated container
-
xor
从类复制的说明:MappeableContainerComputes the bitwise XOR of this container with another (symmetric difference). This container as well as the provided container are left unaffected.- 指定者:
xor在类中MappeableContainer- 参数:
x- other parameter- 返回:
- aggregated container
-
forEach
从类复制的说明:MappeableContainerIterate through the values of this container and pass them along to the IntConsumer, using msb as the 16 most significant bits.- 指定者:
forEach在类中MappeableContainer- 参数:
msb- 16 most significant bitsic- consumer
-
andCardinality
- 指定者:
andCardinality在类中MappeableContainer
-
andCardinality
- 指定者:
andCardinality在类中MappeableContainer
-
andCardinality
- 指定者:
andCardinality在类中MappeableContainer
-
toBitmapContainer
从类复制的说明:MappeableContainerConvert the current container to a BitmapContainer, if a conversion is needed. If the container is already a bitmap, the container is returned unchanged.- 指定者:
toBitmapContainer在类中MappeableContainer- 返回:
- a bitmap container
-
first
public int first()从类复制的说明:MappeableContainerGet the first integer held in the container- 指定者:
first在类中MappeableContainer- 返回:
- the first integer in the container
-
last
public int last()从类复制的说明:MappeableContainerGet the last integer held in the container- 指定者:
last在类中MappeableContainer- 返回:
- the last integer in the container
-
nextValue
public int nextValue(char fromValue) 从类复制的说明:MappeableContainerGets the first value greater than or equal to the lower bound, or -1 if no such value exists.- 指定者:
nextValue在类中MappeableContainer- 参数:
fromValue- the lower bound (inclusive)- 返回:
- the next value
-
previousValue
public int previousValue(char fromValue) 从类复制的说明:MappeableContainerGets the last value less than or equal to the upper bound, or -1 if no such value exists.- 指定者:
previousValue在类中MappeableContainer- 参数:
fromValue- the upper bound (inclusive)- 返回:
- the previous value
-
nextAbsentValue
public int nextAbsentValue(char fromValue) 从类复制的说明:MappeableContainerGets the first absent value greater than or equal to the lower bound.- 指定者:
nextAbsentValue在类中MappeableContainer- 参数:
fromValue- the lower bound (inclusive)- 返回:
- the next absent value
-
previousAbsentValue
public int previousAbsentValue(char fromValue) 从类复制的说明:MappeableContainerGets the last value less than or equal to the upper bound.- 指定者:
previousAbsentValue在类中MappeableContainer- 参数:
fromValue- the upper bound (inclusive)- 返回:
- the previous absent value
-
contains
- 指定者:
contains在类中MappeableContainer
-
contains
- 指定者:
contains在类中MappeableContainer
-
contains
- 指定者:
contains在类中MappeableContainer
-
intersects
public boolean intersects(int minimum, int supremum) 从类复制的说明:MappeableContainerChecks if the container intersects with a range- 指定者:
intersects在类中MappeableContainer- 参数:
minimum- the inclusive unsigned lower bound of the rangesupremum- the exclusive unsigned upper bound of the range- 返回:
- true if the container intersects the range
-
contains
public boolean contains(int minimum, int supremum) 从类复制的说明:MappeableContainerChecks whether the container contains the entire range- 指定者:
contains在类中MappeableContainer- 参数:
minimum- the inclusive lower bound of the rangesupremum- the exclusive upper bound of the range- 返回:
- true if the container contains the range
-