Class Conversions

java.lang.Object
fj.data.Conversions

public final class Conversions extends Object
Functions that convert between data structure types.
Version:
%build.number%
  • Field Details

    • 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.
  • Constructor Details

    • Conversions

      private Conversions()
  • Method Details

    • 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.
    • Effect0_P1

      public static F<Effect0,P1<Unit>> Effect0_P1()
    • Effect0_P1

      public static P1<Unit> Effect0_P1(Effect0 e)
    • Effect1_F

      public static <A> F<A,Unit> Effect1_F(Effect1<A> e)
    • Effect1_F

      public static <A> F<Effect1<A>, F<A,Unit>> Effect1_F()
    • Effect_IO

      public static IO<Unit> Effect_IO(Effect0 e)
    • Effect_IO

      public static F<Effect0,IO<Unit>> Effect_IO()
    • Effect_SafeIO

      public static SafeIO<Unit> Effect_SafeIO(Effect0 e)
    • Effect_SafeIO

      public static F<Effect0, SafeIO<Unit>> Effect_SafeIO()
    • 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.
    • F_SafeIO

      public static <A> SafeIO<A> F_SafeIO(F<Unit,A> f)
    • F_SafeIO

      public static <A> F<F<Unit,A>, SafeIO<A>> F_SafeIO()
    • 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.
    • Try_SafeIO

      public static <A, B, Z extends Exception> SafeIO<Validation<Z,A>> Try_SafeIO(Try0<A,Z> t)
    • Try_SafeIO

      public static <A, B, Z extends Exception> F<Try0<A,Z>, SafeIO<Validation<Z,A>>> Try_SafeIO()
    • Try_IO

      public static <A, B, Z extends IOException> IO<A> Try_IO(Try0<A,Z> t)
    • Try_IO

      public static <A, B, Z extends IOException> F<Try0<A,Z>, IO<A>> Try_IO()
    • Try_F

      public static <A, B, Z extends IOException> F<A, Validation<Z,B>> Try_F(Try1<A,B,Z> t)
    • Try_F

      public static <A, B, Z extends IOException> F<Try1<A,B,Z>, F<A, Validation<Z,B>>> Try_F()
    • TryEffect_P

      public static <E extends Exception> P1<Validation<E,Unit>> TryEffect_P(TryEffect0<E> t)