public static class ReadOnlyList.Util extends Object
ReadOnlyList| Constructor and Description | 
|---|
| 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 aReadOnlyList. | 
| static <E> org.apache.hadoop.hdfs.util.ReadOnlyList<E> | emptyList() | 
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 © 2008–2023 Apache Software Foundation. All rights reserved.