tigase.test.util
Class Params

java.lang.Object
  extended by tigase.test.util.Params
All Implemented Interfaces:
Map<String,Object>

public class Params
extends Object
implements Map<String,Object>

Describe class Params here. Created: Tue May 17 23:10:31 2005

Version:
$Rev: 135 $
Author:
Artur Hefczyc

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Params()
           
Params(Map map)
           
Params(String pars)
           
Params(String[] pars)
           
 
Method Summary
 void clear()
          Describe clear method here.
 boolean containsKey(Object key)
          Describe containsKey method here.
 boolean containsValue(Object object)
          Describe containsValue method here.
static boolean decodeBoolean(String val)
           
 Set<Map.Entry<String,Object>> entrySet()
          Describe entrySet method here.
 boolean equals(Object object)
          Describe equals method here.
 Object get(Object key)
          Describe get method here.
 boolean get(String key, boolean def)
           
 int get(String key, int def)
           
 long get(String key, long def)
           
 String get(String key, String def)
           
 Map<String,String> getMap()
           
 int hashCode()
          Describe hashCode method here.
 boolean isEmpty()
          Describe isEmpty method here.
 boolean isFalse(String key)
           
 Set<String> keySet()
          Describe keySet method here.
protected static Map<String,Object> parseParams(String[] args)
           
 Object put(String key, Object value)
          Describe put method here.
 void putAll(Map map)
          Describe putAll method here.
 Object remove(Object key)
          Describe remove method here.
 int size()
          Describe size method here.
 String toString()
           
 Collection<Object> values()
          Describe values method here.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Params

public Params()

Params

public Params(Map map)

Params

public Params(String pars)

Params

public Params(String[] pars)
Method Detail

parseParams

protected static Map<String,Object> parseParams(String[] args)

getMap

public Map<String,String> getMap()

hashCode

public int hashCode()
Describe hashCode method here.

Specified by:
hashCode in interface Map<String,Object>
Overrides:
hashCode in class Object
Returns:
an int value

put

public Object put(String key,
                  Object value)
Describe put method here.

Specified by:
put in interface Map<String,Object>
Parameters:
key - an String value
value - an Object value
Returns:
an Object value

clear

public void clear()
Describe clear method here.

Specified by:
clear in interface Map<String,Object>

equals

public boolean equals(Object object)
Describe equals method here.

Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class Object
Parameters:
object - an Object value
Returns:
a boolean value

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Describe entrySet method here.

Specified by:
entrySet in interface Map<String,Object>
Returns:
a Set value

get

public Object get(Object key)
Describe get method here.

Specified by:
get in interface Map<String,Object>
Parameters:
object - an Object value
Returns:
an Object value

get

public String get(String key,
                  String def)

get

public int get(String key,
               int def)

get

public long get(String key,
                long def)

decodeBoolean

public static boolean decodeBoolean(String val)

isFalse

public boolean isFalse(String key)

get

public boolean get(String key,
                   boolean def)

putAll

public void putAll(Map map)
Describe putAll method here.

Specified by:
putAll in interface Map<String,Object>
Parameters:
map - a Map value

size

public int size()
Describe size method here.

Specified by:
size in interface Map<String,Object>
Returns:
an int value

values

public Collection<Object> values()
Describe values method here.

Specified by:
values in interface Map<String,Object>
Returns:
a Collection value

remove

public Object remove(Object key)
Describe remove method here.

Specified by:
remove in interface Map<String,Object>
Parameters:
object - an Object value
Returns:
an Object value

containsKey

public boolean containsKey(Object key)
Describe containsKey method here.

Specified by:
containsKey in interface Map<String,Object>
Parameters:
object - an Object value
Returns:
a boolean value

containsValue

public boolean containsValue(Object object)
Describe containsValue method here.

Specified by:
containsValue in interface Map<String,Object>
Parameters:
object - an Object value
Returns:
a boolean value

isEmpty

public boolean isEmpty()
Describe isEmpty method here.

Specified by:
isEmpty in interface Map<String,Object>
Returns:
a boolean value

keySet

public Set<String> keySet()
Describe keySet method here.

Specified by:
keySet in interface Map<String,Object>
Returns:
a Set value

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 Tigase. All Rights Reserved.