Package com.alibaba.graphscope.utils
Class BooleanArrayWrapper
- java.lang.Object
-
- com.alibaba.graphscope.utils.BooleanArrayWrapper
-
public class BooleanArrayWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description BooleanArrayWrapper()
BooleanArrayWrapper(int s, boolean defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assign(BooleanArrayWrapper other)
void
clear()
boolean
get(int ind)
boolean
get(long ind)
boolean
get(Vertex<Long> vertex)
int
getSize()
boolean
partialEmpty(int start, int end)
Check if any ele in [start, end] is trueboolean
partialEmpty(long start, long end)
void
set(boolean newValue)
void
set(int ind, boolean newValue)
void
set(long ind, boolean newValue)
void
set(Vertex<Long> vertex, boolean newvalue)
-
-
-
Method Detail
-
partialEmpty
public boolean partialEmpty(int start, int end)
Check if any ele in [start, end] is true- Parameters:
start
- left boundary.end
- right boundary.- Returns:
- true if empty in this range.
-
partialEmpty
public boolean partialEmpty(long start, long end)
-
assign
public void assign(BooleanArrayWrapper other)
-
get
public boolean get(int ind)
-
get
public boolean get(long ind)
-
set
public void set(int ind, boolean newValue)
-
set
public void set(long ind, boolean newValue)
-
set
public void set(boolean newValue)
-
getSize
public int getSize()
-
clear
public void clear()
-
-