org.apache.struts2.util
类 ContainUtil

java.lang.Object
  继承者 org.apache.struts2.util.ContainUtil

public class ContainUtil
extends Object

ContainUtil will check if object 1 contains object 2. Object 1 may be an Object, array, Collection, or a Map

版本:
$Date$ $Id$

构造方法摘要
ContainUtil()
           
 
方法摘要
static boolean contains(Object obj1, Object obj2)
          Determine if obj2 exists in obj1.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ContainUtil

public ContainUtil()
方法详细信息

contains

public static boolean contains(Object obj1,
                               Object obj2)
Determine if 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 -
返回: