edu.mit.csail.sdg.squander.examples.javacol.Collections Class Reference
[Examples]

List of all members.

Static Public Member Functions

static< E > E get (List< E > list, int idx)
static< E > void set (List< E > list, int idx, E value)
static< E > void add (List< E > list, E elem)
static< E > E prev (List< E > list, E elem)
static< E > E next (List< E > list, E elem)
static< E > E remove (List< E > list, int idx)
static< K, V > V get (Map< K, V > map, K key)
static< K, V > V put (Map< K, V > map, K key, V value)
static< K, V > V removeKey (Map< K, V > map, K key)
static< E > boolean contains (Set< E > s, E key)
static< E > boolean add (Set< E > s, E key)
static< E > boolean remove (Set< E > s, E key)
static void main (String[] args)

Private Member Functions

int f (Map< String, Integer > m)

Detailed Description

Specifies very basic operations on various Java collections.

Author:
Aleksandar Milicevic

Definition at line 26 of file Collections.java.


Member Function Documentation

static <E> boolean edu.mit.csail.sdg.squander.examples.javacol.Collections.add ( Set< E >  s,
key 
) [static]

Definition at line 118 of file Collections.java.

static <E> void edu.mit.csail.sdg.squander.examples.javacol.Collections.add ( List< E >  list,
elem 
) [static]

Definition at line 50 of file Collections.java.

static <E> boolean edu.mit.csail.sdg.squander.examples.javacol.Collections.contains ( Set< E >  s,
key 
) [static]

Definition at line 109 of file Collections.java.

int edu.mit.csail.sdg.squander.examples.javacol.Collections.f ( Map< String, Integer >  m  )  [private]

Definition at line 132 of file Collections.java.

static <K,V> V edu.mit.csail.sdg.squander.examples.javacol.Collections.get ( Map< K, V >  map,
key 
) [static]

Definition at line 82 of file Collections.java.

static <E> E edu.mit.csail.sdg.squander.examples.javacol.Collections.get ( List< E >  list,
int  idx 
) [static]

Definition at line 34 of file Collections.java.

static void edu.mit.csail.sdg.squander.examples.javacol.Collections.main ( String[]  args  )  [static]

Definition at line 136 of file Collections.java.

static <E> E edu.mit.csail.sdg.squander.examples.javacol.Collections.next ( List< E >  list,
elem 
) [static]

Definition at line 60 of file Collections.java.

static <E> E edu.mit.csail.sdg.squander.examples.javacol.Collections.prev ( List< E >  list,
elem 
) [static]

Definition at line 55 of file Collections.java.

static <K,V> V edu.mit.csail.sdg.squander.examples.javacol.Collections.put ( Map< K, V >  map,
key,
value 
) [static]

Definition at line 91 of file Collections.java.

static <E> boolean edu.mit.csail.sdg.squander.examples.javacol.Collections.remove ( Set< E >  s,
key 
) [static]

Definition at line 127 of file Collections.java.

static <E> E edu.mit.csail.sdg.squander.examples.javacol.Collections.remove ( List< E >  list,
int  idx 
) [static]

Definition at line 73 of file Collections.java.

static <K,V> V edu.mit.csail.sdg.squander.examples.javacol.Collections.removeKey ( Map< K, V >  map,
key 
) [static]

Definition at line 100 of file Collections.java.

static <E> void edu.mit.csail.sdg.squander.examples.javacol.Collections.set ( List< E >  list,
int  idx,
value 
) [static]

Definition at line 41 of file Collections.java.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208