public class FlatLists extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FlatLists.ComparableList<T>
List that is also comparable.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
of(List<T> t)
Creates a memory-, CPU- and cache-efficient immutable list from an
existing list.
|
static <T extends Comparable> |
ofComparable(List<T> t) |
static <T extends Comparable> |
ofComparableArray(Object[] t) |
public static <T> List<T> of(List<T> t)
T - Element typet - Array of members of listpublic static <T extends Comparable> FlatLists.ComparableList<T> ofComparable(List<T> t)
public static <T extends Comparable> FlatLists.ComparableList<T> ofComparableArray(Object[] t)
Copyright © 2024 The Apache Software Foundation. All rights reserved.