org.jtheque.core.utils.db
Class EntityUtils

java.lang.Object
  extended by org.jtheque.core.utils.db.EntityUtils

public final class EntityUtils
extends Object

An utility class for the entity.

Author:
Baptiste Wicht

Method Summary
static boolean containsID(Iterable<? extends Entity> list, int id)
          Search in a collection to found a specific id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

containsID

public static boolean containsID(Iterable<? extends Entity> list,
                                 int id)
Search in a collection to found a specific id.

Parameters:
list - The list to search in.
id - The id to find.
Returns:
true if the id is in the list else false.


Copyright © 2010 JTheque. All Rights Reserved.