public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static ObjectInputStream |
createObjectInputStream(String resource)
Creates new object input stream from file.
|
static MasterMoleculeStorage |
newMoleculeStorage(String resource)
Deserialize Master molecule storage from a location.
|
static void |
sleep(long millis)
Sleeps for millis, ignoring interrupts.
|
static Supplier<Void> |
suppliesNull(Runnable method)
Turns your method to a
null supplier. |
static String |
toBase64EncMol(Molecule mol)
Convert molecule to Base64 image representation.
|
static List<Map<String,String>> |
toListOfMap(List<Column> columns)
Conversion function.
|
public static MasterMoleculeStorage newMoleculeStorage(String resource)
resource
- file name, which contains serialized objectpublic static ObjectInputStream createObjectInputStream(String resource)
resource
- public static String toBase64EncMol(Molecule mol)
mol
- Molecule to convertpublic static List<Map<String,String>> toListOfMap(List<Column> columns)
columns
- list of columnspublic static void sleep(long millis)
millis
-