com.opensymphony.webwork.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
ContainUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
contains(Object obj1,
Object obj2)
Determine if obj2 exists in obj1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainUtil()
| Method Detail |
|---|
public static boolean contains(Object obj1, Object obj2)
obj2 exists in obj1.
| Type Of obj1 | Comparison type | |
| null | always return false | |
| Map | Map containsKey(obj2) | |
| Collection | Collection contains(obj2) | |
| Array | there's an array element (e) where e.equals(obj2) | |
| Object | obj1.equals(obj2) |
obj1 - obj2 -
|
WebWork Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||