public class Helper extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
bpBOTTOM
bottom bipolar pointer
|
static int |
bpINVALID
invalid bipolar pointer
|
static int |
bpTOP
top bipolar pointer
|
static int |
InitBranchingLevelValue
brancing level value
|
| Constructor and Description |
|---|
Helper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
createBiPointer(int index,
boolean pos) |
static boolean |
intersectsWith(Collection<?> S1,
Collection<?> S2)
check whether set S1 intersects with the set S2
|
static boolean |
isCorrect(int p) |
static boolean |
isValid(int p) |
static void |
resize(List<?> l,
int n) |
static <T> void |
resize(List<T> l,
int n,
T filler) |
public static final int InitBranchingLevelValue
public static final int bpINVALID
public static final int bpTOP
public static final int bpBOTTOM
public static boolean intersectsWith(Collection<?> S1, Collection<?> S2)
S1 - S1S2 - S2public static void resize(List<?> l, int n)
l - ln - npublic static <T> void resize(List<T> l, int n, T filler)
T - argument typel - ln - nfiller - fillerpublic static int createBiPointer(int index,
boolean pos)
index - indexpos - pospublic static boolean isCorrect(int p)
p - ppublic static boolean isValid(int p)
p - pCopyright © 2015 The University of Manchester. All rights reserved.