This doesn't actually copy the Array, only wraps/unwraps with WrappedArray
This doesn't actually copy the Array, only wraps/unwraps with WrappedArray
This doesn't actually copy the Array, only wraps/unwraps with WrappedArray
This doesn't actually copy the Array, only wraps/unwraps with WrappedArray
Bijections between the numeric types and their java versions.
Bijections between the numeric types and their java versions.
Bijection between byte array and Base64 encoded string.
Bijection between byte array and Base64 encoded string.
The "trim" here is important, as encodeBase64String sometimes tags a newline on the end of its encoding. DON'T REMOVE THIS CALL TO TRIM.
Bijection between byte array and java.nio.ByteBuffer.
Bijection between byte array and java.nio.ByteBuffer.
Bijection between byte array and GZippedBytes.
Bijection between byte array and GZippedBytes.
The "connect" method allows composition of multiple implicit bijections into a single bijection.
The "connect" method allows composition of multiple implicit bijections into a single bijection. For example,
val composed = connect[Long, Array[Byte], Base64String]: Bijection[Long, Base64String]
We check for default, and return None, else Some Note this never returns Some(default)
Converts a function that combines two arguments of type A into a function that combines two arguments of type B into a single B.
Converts a function that combines two arguments of type A into a function that combines two arguments of type B into a single B. Useful for converting input functions to "reduce". TODO: codegen these up to Function22 if they turn out to be useful.
Converts a function that transforms type A into a function that transforms type B.
Encoding half of the Cantor–Bernstein–Schroeder theorem http://en.wikipedia.org/wiki/Cantor%E2%80%93Bernstein%E2%80%93Schroeder_theorem
Encoding half of the Cantor–Bernstein–Schroeder theorem http://en.wikipedia.org/wiki/Cantor%E2%80%93Bernstein%E2%80%93Schroeder_theorem
Bijections between collection types defined in scala.collection.JavaConverters.
Bijections between collection types defined in scala.collection.JavaConverters.
Accepts a Bijection[A, B] and returns a bijection that can transform traversable containers of A into traversable containers of B.
Accepts a Bijection[A, B] and returns a bijection that can transform traversable containers of A into traversable containers of B.
Do not go from ordered to unordered containers; Bijection[Iterable[A], Set[B]] is inaccurate, and really makes no sense.