public class Struct
extends java.lang.Object
StructExamples| Constructor | Description |
|---|---|
Struct() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T1,T2> java.lang.Iterable<MapStruct<T1,T2>> |
pairs(java.util.Map<T1,T2> map) |
Wraps the key/value pairs of a map in a struct container.
|
static <T1,T2> Struct2<T1,T2> |
struct(T1 value1,
T2 value2) |
Wraps two elements in struct container.
|
static <T1,T2,T3> Struct3<T1,T2,T3> |
struct(T1 value1,
T2 value2,
T3 value3) |
Wraps three elements in struct container.
|
static <T1,T2,T3,T4> |
struct(T1 value1,
T2 value2,
T3 value3,
T4 value4) |
Wraps four elements in struct container.
|
static <T1,T2,T3,T4,T5> |
struct(T1 value1,
T2 value2,
T3 value3,
T4 value4,
T5 value5) |
Wraps five elements in struct container.
|
public static <T1,T2> Struct2<T1,T2> struct(T1 value1, T2 value2)
T1 - the first typeT2 - the second typevalue1 - the first valuevalue2 - the second valuepublic static <T1,T2,T3> Struct3<T1,T2,T3> struct(T1 value1, T2 value2, T3 value3)
T1 - the first typeT2 - the second typeT3 - the third typevalue1 - the first valuevalue2 - the second valuevalue3 - the third valuepublic static <T1,T2,T3,T4> Struct4<T1,T2,T3,T4> struct(T1 value1, T2 value2, T3 value3, T4 value4)
T1 - the first typeT2 - the second typeT3 - the third typeT4 - the fourth typevalue1 - the first valuevalue2 - the second valuevalue3 - the third valuevalue4 - the fourth valuepublic static <T1,T2,T3,T4,T5> Struct5<T1,T2,T3,T4,T5> struct(T1 value1, T2 value2, T3 value3, T4 value4, T5 value5)
T1 - the first typeT2 - the second typeT3 - the third typeT4 - the fourth typeT5 - the fifth typevalue1 - the first valuevalue2 - the second valuevalue3 - the third valuevalue4 - the fourth valuevalue5 - the fifth valuepublic static <T1,T2> java.lang.Iterable<MapStruct<T1,T2>> pairs(java.util.Map<T1,T2> map)
T1 - the key typeT2 - the value typemap - the mapCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.