java > java.util > java.util.collections >

Class: java.util.Collections
    java.lang.Object
       java.util.Collections


public class Collections extends Object


FIELDS:
public static final List EMPTY_LIST
public static final Map EMPTY_MAP
public static final Set EMPTY_SET

CONSTRUCTORS:

METHODS:
public static boolean addAll(Collection c, Object[] elements)
Throws: UnsupportedOperationException
Throws: NullPointerException
Throws: IllegalArgumentException

public static Queue asLifoQueue(Deque deque)

public static int binarySearch(List list, Object key)
Throws: ClassCastException

public static int binarySearch(List list, Object key, Comparator c)
Throws: ClassCastException

public static Collection checkedCollection(Collection c, Class type)

public static List checkedList(List list, Class type)

public static Map checkedMap(Map m, Class keyType, Class valueType)

public static Set checkedSet(Set s, Class type)

public static SortedMap checkedSortedMap(SortedMap m, Class keyType, Class valueType)

public static SortedSet checkedSortedSet(SortedSet s, Class type)

public static void copy(List dest, List src)
Throws: IndexOutOfBoundsException
Throws: UnsupportedOperationException

public static boolean disjoint(Collection c1, Collection c2)
Throws: NullPointerException

public static final List emptyList()

public static final Map emptyMap()

public static final Set emptySet()

public static Enumeration enumeration(Collection c)

public static void fill(List list, Object obj)
Throws: UnsupportedOperationException

public static int frequency(Collection c, Object o)
Throws: NullPointerException

public static int indexOfSubList(List source, List target)

public static int lastIndexOfSubList(List source, List target)

public static ArrayList list(Enumeration e)

public static Object max(Collection coll)
Throws: ClassCastException
Throws: NoSuchElementException

public static Object max(Collection coll, Comparator comp)
Throws: ClassCastException
Throws: NoSuchElementException

public static Object min(Collection coll)
Throws: ClassCastException
Throws: NoSuchElementException

public static Object min(Collection coll, Comparator comp)
Throws: ClassCastException
Throws: NoSuchElementException

public static List nCopies(int n, Object o)
Throws: IllegalArgumentException

public static Set newSetFromMap(Map map)
Throws: IllegalArgumentException

public static boolean replaceAll(List list, Object oldVal, Object newVal)
Throws: UnsupportedOperationException

public static void reverse(List list)
Throws: UnsupportedOperationException

public static Comparator reverseOrder()

public static Comparator reverseOrder(Comparator cmp)

public static void rotate(List list, int distance)
Throws: UnsupportedOperationException

public static void shuffle(List list)
Throws: UnsupportedOperationException

public static void shuffle(List list, Random rnd)
Throws: UnsupportedOperationException

public static Set singleton(Object o)

public static List singletonList(Object o)

public static Map singletonMap(Object key, Object value)

public static void sort(List list)
Throws: ClassCastException
Throws: UnsupportedOperationException

public static void sort(List list, Comparator c)
Throws: ClassCastException
Throws: UnsupportedOperationException

public static void swap(List list, int i, int j)
Throws: IndexOutOfBoundsException

public static Collection synchronizedCollection(Collection c)

public static List synchronizedList(List list)

public static Map synchronizedMap(Map m)

public static Set synchronizedSet(Set s)

public static SortedMap synchronizedSortedMap(SortedMap m)

public static SortedSet synchronizedSortedSet(SortedSet s)

public static Collection unmodifiableCollection(Collection c)

public static List unmodifiableList(List list)

public static Map unmodifiableMap(Map m)

public static Set unmodifiableSet(Set s)

public static SortedMap unmodifiableSortedMap(SortedMap m)

public static SortedSet unmodifiableSortedSet(SortedSet s)


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net