public class UtilityMethods
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
newLineString |
Constructor and Description |
---|
UtilityMethods() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
addAllWithoutRepetition(java.util.List<T> L,
java.util.List<T> R)
add elements of R that does not exits in L to L.
|
static <T> boolean |
areEqual(java.util.List<T> L,
java.util.List<T> R)
Checks if the set of L and R are equal.
|
static java.lang.String |
get_address_for_automata_library() |
static java.lang.String |
get_address_for_command_files() |
static java.lang.String |
get_address_for_custom_bases() |
static java.lang.String |
get_address_for_result() |
static java.lang.String |
get_address_for_test_library() |
static java.lang.String |
get_address_for_words_library() |
static boolean |
isNumber(java.lang.String s)
checks if a string is \\d+
|
static char |
max(char a,
char b) |
static char |
min(char a,
char b) |
static java.lang.String |
newLine() |
static int |
parseInt(java.lang.String s) |
static <T> java.util.List<T> |
permute(java.util.List<T> L,
int[] permutation)
permutes L with regard to permutation.
|
static <T> void |
removeDuplicates(java.util.List<T> L)
For example when L = [1,3,2,1,3] the result is [1,3,2]
|
static <T> void |
removeIndices(java.util.List<T> L,
java.util.List<java.lang.Integer> indices)
For example when indices = [1,3] and L = [X,Y,Z,W] then the result is [X,Z]
|
static void |
setPaths() |
static <T> java.lang.String |
toTuple(java.util.List<T> l)
For example when L = [1,2,3] then the result is the string "(1,2,3)"
|
public static void setPaths()
public static java.lang.String get_address_for_command_files()
public static java.lang.String get_address_for_automata_library()
public static java.lang.String get_address_for_result()
public static java.lang.String get_address_for_custom_bases()
public static java.lang.String get_address_for_words_library()
public static java.lang.String get_address_for_test_library()
public static char min(char a, char b)
public static char max(char a, char b)
public static java.lang.String newLine()
public static boolean isNumber(java.lang.String s)
s
- public static <T> java.util.List<T> permute(java.util.List<T> L, int[] permutation)
L
- permutation
- public static <T> java.lang.String toTuple(java.util.List<T> l)
l
- public static <T> void removeDuplicates(java.util.List<T> L)
L
- public static <T> boolean areEqual(java.util.List<T> L, java.util.List<T> R)
L
- R
- public static <T> void addAllWithoutRepetition(java.util.List<T> L, java.util.List<T> R)
L
- R
- public static <T> void removeIndices(java.util.List<T> L, java.util.List<java.lang.Integer> indices)
L
- indices
- public static int parseInt(java.lang.String s)
s
-