Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts2.util
Class ContainUtil

    java.lang.Object
      org.apache.struts2.util.ContainUtil

    public class ContainUtil

extends java.lang.Object

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

Version:
  $Date: 2009-08-10 23:57:37 +0200 (Mon, 10 Aug 2009) $ $Id: ContainUtil.java 802937 2009-08-10 21:57:37Z musachy $

Constructor Summary
`ContainUtil()`

Method Summary
`static boolean` | `contains(java.lang.Object obj1, java.lang.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

### ContainUtil

    public ContainUtil()

Method Detail

### contains

    public static boolean contains(java.lang.Object obj1,
                                   java.lang.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)

  Parameters:
    `obj1` -
    `obj2` -
  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.