public static class ReadOnlyList.Util extends Object
ReadOnlyList| Constructor and Description |
|---|
ReadOnlyList.Util() |
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
asList(org.apache.hadoop.hdfs.util.ReadOnlyList<E> list) |
static <E> org.apache.hadoop.hdfs.util.ReadOnlyList<E> |
asReadOnlyList(List<E> list) |
static <K,E extends Comparable<K>> |
binarySearch(org.apache.hadoop.hdfs.util.ReadOnlyList<E> list,
K key)
The same as
Collections.binarySearch(List, Object)
except that the list is a ReadOnlyList. |
static <E> org.apache.hadoop.hdfs.util.ReadOnlyList<E> |
emptyList() |
public ReadOnlyList.Util()
public static <E> org.apache.hadoop.hdfs.util.ReadOnlyList<E> emptyList()
public static <K,E extends Comparable<K>> int binarySearch(org.apache.hadoop.hdfs.util.ReadOnlyList<E> list, K key)
Collections.binarySearch(List, Object)
except that the list is a ReadOnlyList.Collections.binarySearch(List, Object).public static <E> org.apache.hadoop.hdfs.util.ReadOnlyList<E> asReadOnlyList(List<E> list)
ReadOnlyList view of the given list.Copyright © 2017 Apache Software Foundation. All Rights Reserved.