Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.systemwideinterfaces.utils.ReadOnlyList Class Reference

List of all members.

Static Public Member Functions

static< E > List< E > create (List< E > list)
static< E > Collection< E > create (Collection< E > collection)
static< K, V > Map< K, V > create (Map< K, V > map)
static< E > Set< E > create (Set< E > set)

Package Functions

static< E > Iterator< E > create (Iterator< E > iterator)

Detailed Description

This class can be used to create an immutable instance of collection classes. These classes can be of the Java type Collection, List, Map and Set.

use java.util.Collections.umodifiableList, java.util.Collections.unmodifiableCollection and java.util.Collections.unmodifiableMap instead.

Member Function Documentation

static <E> List<E> com.mendix.systemwideinterfaces.utils.ReadOnlyList.create ( List< E >  list) [static]

Create a read-only list, based on the given List instance.

listthe source of the newly created read-only list.
a read-only list
static <E> Collection<E> com.mendix.systemwideinterfaces.utils.ReadOnlyList.create ( Collection< E >  collection) [static]

Create a read-only collection, based on the given Collection instance.

collectionthe source of the newly created read-only collection.
a read-only collection
static <K,V> Map<K, V> com.mendix.systemwideinterfaces.utils.ReadOnlyList.create ( Map< K, V >  map) [static]

Create a read-only map, based on the given Map instance.

mapthe source of the newly created read-only map.
a read-only map
static <E> Set<E> com.mendix.systemwideinterfaces.utils.ReadOnlyList.create ( Set< E >  set) [static]

Create a read-only set, based on the given Set instance.

setthe source of the newly created read-only set.
a read-only set
static<E> Iterator<E> com.mendix.systemwideinterfaces.utils.ReadOnlyList.create ( Iterator< E >  iterator) [package]

Create a read-only iterator, based on the given Iterator instance.

iteratorthe source of the newly created read-only iterator.
a read-only iterator

The documentation for this class was generated from the following file: