public class

Arrays

extends Object
java.lang.Object
   ↳ com.usebutton.sdk.util.Arrays

Summary

Nested Classes
interface Arrays.Emitter<In, Out>  
interface Arrays.Sink<Out>  
Public Constructors
Arrays()
Public Methods
static <T> void addIfNotNull(List<T> target, T object)
static <In, Out> List<Out> flatten(List<In> in, Emitter<In, Out> emitter)
Flatten by performing function on each object in .
static boolean isEmpty(Object[] objects)
static boolean isNotEmpty(Object[] objects)
static String toString(Object[] objects)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Arrays ()

Public Methods

public static void addIfNotNull (List<T> target, T object)

public static List<Out> flatten (List<In> in, Emitter<In, Out> emitter)

Flatten by performing function on each object in . Can e.g. be used to extract all fields from a list of objects into a list of these fields.

Parameters
in source list
emitter function to add items to the result
Returns
  • resulting list of flattened objects as emitted by emitter

public static boolean isEmpty (Object[] objects)

public static boolean isNotEmpty (Object[] objects)

public static String toString (Object[] objects)