Top Description Inners Constructors Methods
rx.internal.util

public final Class UtilityFunctions

extends Object
Class Inheritance
Imports
rx.functions.Func1

Utility functions for internal use that we don't want part of the public API.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
pack-priv static enum
pack-priv static enum

Constructor Summary

AccessConstructor and Description
private
UtilityFunctions()

Utility class.

Method Summary

Modifier and TypeMethod and Description
public static <
the value type
T
>
Func1<? super T, Boolean>

Returns:

a Func1 that accepts an Object and returns the Boolean false
alwaysFalse
()

Returns a function that always returns false.

public static <
the value type
T
>
Func1<? super T, Boolean>

Returns:

a Func1 that accepts an Object and returns the Boolean true
alwaysTrue
()

Returns a function that always returns true.

public static <
the input and output value type
T
>
Func1<T, T>

Returns:

a Func1 that accepts an Object and returns the same Object
identity
()

Returns a function that always returns the Object it is passed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UtilityFunctionsback to summary
private UtilityFunctions()

Utility class.

Method Detail

alwaysFalseback to summary
public static <T> Func1<? super T, Boolean> alwaysFalse()

Returns a function that always returns false.

Parameters
<T>
the value type
Returns:Func1<? super T, Boolean>

a Func1 that accepts an Object and returns the Boolean false

alwaysTrueback to summary
public static <T> Func1<? super T, Boolean> alwaysTrue()

Returns a function that always returns true.

Parameters
<T>
the value type
Returns:Func1<? super T, Boolean>

a Func1 that accepts an Object and returns the Boolean true

identityback to summary
public static <T> Func1<T, T> identity()

Returns a function that always returns the Object it is passed.

Parameters
<T>
the input and output value type
Returns:Func1<T, T>

a Func1 that accepts an Object and returns the same Object

Annotations
@SuppressWarnings:unchecked
rx.internal.util back to summary

pack-priv final Enum UtilityFunctions.AlwaysFalse

extends Enum<UtilityFunctions.AlwaysFalse>
implements Func1<Object, Boolean>
Class Inheritance
All Implemented Interfaces
rx.functions.Func1, rx.functions.Function

Field Summary

Modifier and TypeField and Description
public static final UtilityFunctions.AlwaysFalse

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Boolean
public static UtilityFunctions.AlwaysFalse
public static UtilityFunctions.AlwaysFalse[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final UtilityFunctions.AlwaysFalse INSTANCE

Constructor Detail

AlwaysFalseback to summary
private AlwaysFalse()

Method Detail

callback to summary
public Boolean call(Object o)

Implements rx.functions.Func1.call.

Annotations
@Override
valueOfback to summary
public static UtilityFunctions.AlwaysFalse valueOf(String name)
valuesback to summary
public static UtilityFunctions.AlwaysFalse[] values()
rx.internal.util back to summary

pack-priv final Enum UtilityFunctions.AlwaysTrue

extends Enum<UtilityFunctions.AlwaysTrue>
implements Func1<Object, Boolean>
Class Inheritance
All Implemented Interfaces
rx.functions.Func1, rx.functions.Function

Field Summary

Modifier and TypeField and Description
public static final UtilityFunctions.AlwaysTrue

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Boolean
public static UtilityFunctions.AlwaysTrue
public static UtilityFunctions.AlwaysTrue[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final UtilityFunctions.AlwaysTrue INSTANCE

Constructor Detail

AlwaysTrueback to summary
private AlwaysTrue()

Method Detail

callback to summary
public Boolean call(Object o)

Implements rx.functions.Func1.call.

Annotations
@Override
valueOfback to summary
public static UtilityFunctions.AlwaysTrue valueOf(String name)
valuesback to summary
public static UtilityFunctions.AlwaysTrue[] values()
rx.internal.util back to summary

pack-priv final Enum UtilityFunctions.Identity

extends Enum<UtilityFunctions.Identity>
implements Func1<Object, Object>
Class Inheritance
All Implemented Interfaces
rx.functions.Func1, rx.functions.Function

Field Summary

Modifier and TypeField and Description
public static final UtilityFunctions.Identity

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
public static UtilityFunctions.Identity
public static UtilityFunctions.Identity[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final UtilityFunctions.Identity INSTANCE

Constructor Detail

Identityback to summary
private Identity()

Method Detail

callback to summary
public Object call(Object o)

Implements rx.functions.Func1.call.

Annotations
@Override
valueOfback to summary
public static UtilityFunctions.Identity valueOf(String name)
valuesback to summary
public static UtilityFunctions.Identity[] values()