Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg

This software is released under an open source BSD licence.

fj.data
Class Conversions

java.lang.Object
  extended by fj.data.Conversions

public final class Conversions
extends Object

Functions that convert between data structure types.


Field Summary
static F<Array<Character>,String> Array_String
          A function that converts arrays to strings.
static F<Array<Character>,StringBuffer> Array_StringBuffer
          A function that converts arrays to string buffers.
static F<Array<Character>,StringBuilder> Array_StringBuilder
          A function that converts arrays to string builders.
static F<List<Character>,String> List_String
          A function that converts lists to strings.
static F<List<Character>,StringBuffer> List_StringBuffer
          A function that converts lists to string buffers.
static F<List<Character>,StringBuilder> List_StringBuilder
          A function that converts lists to string builders.
static F<Option<Character>,String> Option_String
          A function that converts options to strings.
static F<Option<Character>,StringBuffer> Option_StringBuffer
          A function that converts options to string buffers.
static F<Option<Character>,StringBuilder> Option_StringBuilder
          A function that converts options to string builders.
static F<Stream<Character>,String> Stream_String
          A function that converts streams to strings.
static F<Stream<Character>,StringBuffer> Stream_StringBuffer
          A function that converts streams to string buffers.
static F<Stream<Character>,StringBuilder> Stream_StringBuilder
          A function that converts streams to string builders.
static F<String,Array<Character>> String_Array
          A function that converts strings to arrays.
static F<String,List<Character>> String_List
          A function that converts strings to lists.
static F<String,Option<Character>> String_Option
          A function that converts strings to options.
static F<String,Stream<Character>> String_Stream
          A function that converts strings to streams.
static F<String,StringBuffer> String_StringBuffer
          A function that converts strings to string buffers.
static F<String,StringBuilder> String_StringBuilder
          A function that converts strings to string builders.
static F<StringBuffer,Array<Character>> StringBuffer_Array
          A function that converts string buffers to arrays.
static F<StringBuffer,List<Character>> StringBuffer_List
          A function that converts string buffers to lists.
static F<StringBuffer,Option<Character>> StringBuffer_Option
          A function that converts string buffers to options.
static F<StringBuffer,Stream<Character>> StringBuffer_Stream
          A function that converts string buffers to streams.
static F<StringBuffer,String> StringBuffer_String
          A function that converts string buffers to strings.
static F<StringBuffer,StringBuilder> StringBuffer_StringBuilder
          A function that converts string buffers to string builders.
static F<StringBuilder,Array<Character>> StringBuilder_Array
          A function that converts string builders to arrays.
static F<StringBuilder,List<Character>> StringBuilder_List
          A function that converts string builders to lists.
static F<StringBuilder,Option<Character>> StringBuilder_Option
          A function that converts string builders to options.
static F<StringBuilder,Stream<Character>> StringBuilder_Stream
          A function that converts string builders to streams.
static F<StringBuilder,String> StringBuilder_String
          A function that converts string builders to strings.
static F<StringBuilder,StringBuffer> StringBuilder_StringBuffer
          A function that converts string builders to string buffers.
 
Method Summary
static
<A,B> F<P1<A>,F<Array<B>,Either<A,B>>>
Array_Either()
          A function that converts arrays to eithers.
static
<A> F<Array<A>,List<A>>
Array_List()
          A function that converts arrays to lists.
static
<A> F<Array<A>,Option<A>>
Array_Option()
          A function that converts arrays to options.
static
<A> F<Array<A>,Stream<A>>
Array_Stream()
          A function that converts arrays to streams.
static
<A,B> F<Either<A,B>,Array<A>>
Either_ArrayA()
          A function that converts eithers to arrays.
static
<A,B> F<Either<A,B>,Array<B>>
Either_ArrayB()
          A function that converts eithers to arrays.
static
<A,B> F<Either<A,B>,List<A>>
Either_ListA()
          A function that converts eithers to lists.
static
<A,B> F<Either<A,B>,List<B>>
Either_ListB()
          A function that converts eithers to lists.
static
<A,B> F<Either<A,B>,Option<A>>
Either_OptionA()
          A function that converts eithers to options.
static
<A,B> F<Either<A,B>,Option<B>>
Either_OptionB()
          A function that converts eithers to options.
static
<A,B> F<Either<A,B>,Stream<A>>
Either_StreamA()
          A function that converts eithers to streams.
static
<A,B> F<Either<A,B>,Stream<B>>
Either_StreamB()
          A function that converts eithers to streams.
static
<B> F<Either<Character,B>,String>
Either_StringA()
          A function that converts eithers to strings.
static
<A> F<Either<A,Character>,String>
Either_StringB()
          A function that converts eithers to strings.
static
<B> F<Either<Character,B>,StringBuffer>
Either_StringBufferA()
          A function that converts eithers to string buffers.
static
<A> F<Either<A,Character>,StringBuffer>
Either_StringBufferB()
          A function that converts eithers to string buffers.
static
<B> F<Either<Character,B>,StringBuilder>
Either_StringBuilderA()
          A function that converts eithers to string builders.
static
<A> F<Either<A,Character>,StringBuilder>
Either_StringBuilderB()
          A function that converts eithers to string builders.
static
<A> F<List<A>,Array<A>>
List_Array()
          A function that converts lists to arrays.
static
<A,B> F<P1<A>,F<List<B>,Either<A,B>>>
List_Either()
          A function that converts lists to eithers.
static
<A> F<List<A>,Option<A>>
List_Option()
          A function that converts lists to options.
static
<A> F<List<A>,Stream<A>>
List_Stream()
          A function that converts lists to streams.
static
<A> F<Option<A>,Array<A>>
Option_Array()
          A function that converts options to arrays.
static
<A,B> F<P1<A>,F<Option<B>,Either<A,B>>>
Option_Either()
          A function that converts options to eithers.
static
<A> F<Option<A>,List<A>>
Option_List()
          A function that converts options to lists.
static
<A> F<Option<A>,Stream<A>>
Option_Stream()
          A function that converts options to streams.
static
<A> F<Stream<A>,Array<A>>
Stream_Array()
          A function that converts streams to arrays.
static
<A,B> F<P1<A>,F<Stream<B>,Either<A,B>>>
Stream_Either()
          A function that converts streams to eithers.
static
<A> F<Stream<A>,List<A>>
Stream_List()
          A function that converts streams to lists.
static
<A> F<Stream<A>,Option<A>>
Stream_Option()
          A function that converts streams to options.
static
<A> F<P1<A>,F<String,Either<A,Character>>>
String_Either()
          A function that converts string to eithers.
static
<A> F<P1<A>,F<StringBuffer,Either<A,Character>>>
StringBuffer_Either()
          A function that converts string buffers to eithers.
static
<A> F<P1<A>,F<StringBuilder,Either<A,Character>>>
StringBuilder_Either()
          A function that converts string builders to eithers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

List_String

public static final F<List<Character>,String> List_String
A function that converts lists to strings.


List_StringBuffer

public static final F<List<Character>,StringBuffer> List_StringBuffer
A function that converts lists to string buffers.


List_StringBuilder

public static final F<List<Character>,StringBuilder> List_StringBuilder
A function that converts lists to string builders.


Array_String

public static final F<Array<Character>,String> Array_String
A function that converts arrays to strings.


Array_StringBuffer

public static final F<Array<Character>,StringBuffer> Array_StringBuffer
A function that converts arrays to string buffers.


Array_StringBuilder

public static final F<Array<Character>,StringBuilder> Array_StringBuilder
A function that converts arrays to string builders.


Stream_String

public static final F<Stream<Character>,String> Stream_String
A function that converts streams to strings.


Stream_StringBuffer

public static final F<Stream<Character>,StringBuffer> Stream_StringBuffer
A function that converts streams to string buffers.


Stream_StringBuilder

public static final F<Stream<Character>,StringBuilder> Stream_StringBuilder
A function that converts streams to string builders.


Option_String

public static final F<Option<Character>,String> Option_String
A function that converts options to strings.


Option_StringBuffer

public static final F<Option<Character>,StringBuffer> Option_StringBuffer
A function that converts options to string buffers.


Option_StringBuilder

public static final F<Option<Character>,StringBuilder> Option_StringBuilder
A function that converts options to string builders.


String_List

public static final F<String,List<Character>> String_List
A function that converts strings to lists.


String_Array

public static final F<String,Array<Character>> String_Array
A function that converts strings to arrays.


String_Option

public static final F<String,Option<Character>> String_Option
A function that converts strings to options.


String_Stream

public static final F<String,Stream<Character>> String_Stream
A function that converts strings to streams.


String_StringBuffer

public static final F<String,StringBuffer> String_StringBuffer
A function that converts strings to string buffers.


String_StringBuilder

public static final F<String,StringBuilder> String_StringBuilder
A function that converts strings to string builders.


StringBuffer_List

public static final F<StringBuffer,List<Character>> StringBuffer_List
A function that converts string buffers to lists.


StringBuffer_Array

public static final F<StringBuffer,Array<Character>> StringBuffer_Array
A function that converts string buffers to arrays.


StringBuffer_Stream

public static final F<StringBuffer,Stream<Character>> StringBuffer_Stream
A function that converts string buffers to streams.


StringBuffer_Option

public static final F<StringBuffer,Option<Character>> StringBuffer_Option
A function that converts string buffers to options.


StringBuffer_String

public static final F<StringBuffer,String> StringBuffer_String
A function that converts string buffers to strings.


StringBuffer_StringBuilder

public static final F<StringBuffer,StringBuilder> StringBuffer_StringBuilder
A function that converts string buffers to string builders.


StringBuilder_List

public static final F<StringBuilder,List<Character>> StringBuilder_List
A function that converts string builders to lists.


StringBuilder_Array

public static final F<StringBuilder,Array<Character>> StringBuilder_Array
A function that converts string builders to arrays.


StringBuilder_Stream

public static final F<StringBuilder,Stream<Character>> StringBuilder_Stream
A function that converts string builders to streams.


StringBuilder_Option

public static final F<StringBuilder,Option<Character>> StringBuilder_Option
A function that converts string builders to options.


StringBuilder_String

public static final F<StringBuilder,String> StringBuilder_String
A function that converts string builders to strings.


StringBuilder_StringBuffer

public static final F<StringBuilder,StringBuffer> StringBuilder_StringBuffer
A function that converts string builders to string buffers.

Method Detail

List_Array

public static <A> F<List<A>,Array<A>> List_Array()
A function that converts lists to arrays.

Returns:
A function that converts lists to arrays.

List_Stream

public static <A> F<List<A>,Stream<A>> List_Stream()
A function that converts lists to streams.

Returns:
A function that converts lists to streams.

List_Option

public static <A> F<List<A>,Option<A>> List_Option()
A function that converts lists to options.

Returns:
A function that converts lists to options.

List_Either

public static <A,B> F<P1<A>,F<List<B>,Either<A,B>>> List_Either()
A function that converts lists to eithers.

Returns:
A function that converts lists to eithers.

Array_List

public static <A> F<Array<A>,List<A>> Array_List()
A function that converts arrays to lists.

Returns:
A function that converts arrays to lists.

Array_Stream

public static <A> F<Array<A>,Stream<A>> Array_Stream()
A function that converts arrays to streams.

Returns:
A function that converts arrays to streams.

Array_Option

public static <A> F<Array<A>,Option<A>> Array_Option()
A function that converts arrays to options.

Returns:
A function that converts arrays to options.

Array_Either

public static <A,B> F<P1<A>,F<Array<B>,Either<A,B>>> Array_Either()
A function that converts arrays to eithers.

Returns:
A function that converts arrays to eithers.

Stream_List

public static <A> F<Stream<A>,List<A>> Stream_List()
A function that converts streams to lists.

Returns:
A function that converts streams to lists.

Stream_Array

public static <A> F<Stream<A>,Array<A>> Stream_Array()
A function that converts streams to arrays.

Returns:
A function that converts streams to arrays.

Stream_Option

public static <A> F<Stream<A>,Option<A>> Stream_Option()
A function that converts streams to options.

Returns:
A function that converts streams to options.

Stream_Either

public static <A,B> F<P1<A>,F<Stream<B>,Either<A,B>>> Stream_Either()
A function that converts streams to eithers.

Returns:
A function that converts streams to eithers.

Option_List

public static <A> F<Option<A>,List<A>> Option_List()
A function that converts options to lists.

Returns:
A function that converts options to lists.

Option_Array

public static <A> F<Option<A>,Array<A>> Option_Array()
A function that converts options to arrays.

Returns:
A function that converts options to arrays.

Option_Stream

public static <A> F<Option<A>,Stream<A>> Option_Stream()
A function that converts options to streams.

Returns:
A function that converts options to streams.

Option_Either

public static <A,B> F<P1<A>,F<Option<B>,Either<A,B>>> Option_Either()
A function that converts options to eithers.

Returns:
A function that converts options to eithers.

Either_ListA

public static <A,B> F<Either<A,B>,List<A>> Either_ListA()
A function that converts eithers to lists.

Returns:
A function that converts eithers to lists.

Either_ListB

public static <A,B> F<Either<A,B>,List<B>> Either_ListB()
A function that converts eithers to lists.

Returns:
A function that converts eithers to lists.

Either_ArrayA

public static <A,B> F<Either<A,B>,Array<A>> Either_ArrayA()
A function that converts eithers to arrays.

Returns:
A function that converts eithers to arrays.

Either_ArrayB

public static <A,B> F<Either<A,B>,Array<B>> Either_ArrayB()
A function that converts eithers to arrays.

Returns:
A function that converts eithers to arrays.

Either_StreamA

public static <A,B> F<Either<A,B>,Stream<A>> Either_StreamA()
A function that converts eithers to streams.

Returns:
A function that converts eithers to streams.

Either_StreamB

public static <A,B> F<Either<A,B>,Stream<B>> Either_StreamB()
A function that converts eithers to streams.

Returns:
A function that converts eithers to streams.

Either_OptionA

public static <A,B> F<Either<A,B>,Option<A>> Either_OptionA()
A function that converts eithers to options.

Returns:
A function that converts eithers to options.

Either_OptionB

public static <A,B> F<Either<A,B>,Option<B>> Either_OptionB()
A function that converts eithers to options.

Returns:
A function that converts eithers to options.

Either_StringA

public static <B> F<Either<Character,B>,String> Either_StringA()
A function that converts eithers to strings.

Returns:
A function that converts eithers to strings.

Either_StringB

public static <A> F<Either<A,Character>,String> Either_StringB()
A function that converts eithers to strings.

Returns:
A function that converts eithers to strings.

Either_StringBufferA

public static <B> F<Either<Character,B>,StringBuffer> Either_StringBufferA()
A function that converts eithers to string buffers.

Returns:
A function that converts eithers to string buffers.

Either_StringBufferB

public static <A> F<Either<A,Character>,StringBuffer> Either_StringBufferB()
A function that converts eithers to string buffers.

Returns:
A function that converts eithers to string buffers.

Either_StringBuilderA

public static <B> F<Either<Character,B>,StringBuilder> Either_StringBuilderA()
A function that converts eithers to string builders.

Returns:
A function that converts eithers to string builders.

Either_StringBuilderB

public static <A> F<Either<A,Character>,StringBuilder> Either_StringBuilderB()
A function that converts eithers to string builders.

Returns:
A function that converts eithers to string builders.

String_Either

public static <A> F<P1<A>,F<String,Either<A,Character>>> String_Either()
A function that converts string to eithers.

Returns:
A function that converts string to eithers.

StringBuffer_Either

public static <A> F<P1<A>,F<StringBuffer,Either<A,Character>>> StringBuffer_Either()
A function that converts string buffers to eithers.

Returns:
A function that converts string buffers to eithers.

StringBuilder_Either

public static <A> F<P1<A>,F<StringBuilder,Either<A,Character>>> StringBuilder_Either()
A function that converts string builders to eithers.

Returns:
A function that converts string builders to eithers.

Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg

This software is released under an open source BSD licence.