Interface | Description |
---|---|
HashWrapper |
Class | Description |
---|---|
Hash | |
HashWrapper.Linked | |
To |
Utilities for converting "To" other formats, with some JavaScript conventions.
|
Exception | Description |
---|---|
Hash.NoSuchKeyException |
Prelimary utility code for pulling values from Maps. Useful because JavaScript/node.js usually use { } "objects" or "hashes" to pass settings and options.
To.java converts a raw Object "to" a different type, with two main method signatures:
type typeFrom(Object in)
converts a single Object to a typetype typeOr(Object in, type...or)
mimics the JavaScript || operator, returning the 2nd arg if the 1st is nullgetType(Map map, String key, Type...or)
Almost all methods take the varargs or... argument. Only the 0th value is ever used.