Package net.sf.ehcache
Class ElementIdHelper
- java.lang.Object
-
- net.sf.ehcache.ElementIdHelper
-
public class ElementIdHelper extends java.lang.ObjectProvide access to the package private methods for getting/setting Element id. The id field of an Element is for internal ehcache use only and this class is meant to discourage casual use of the methods from application code- Author:
- teck
-
-
Constructor Summary
Constructors Constructor Description ElementIdHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetId(Element e)Get the element idstatic booleanhasId(Element e)Is element id set?static voidsetId(Element e, long id)Set the element id
-
-
-
Method Detail
-
hasId
public static boolean hasId(Element e)
Is element id set?- Parameters:
e- element to inspect- Returns:
- true if this element has an id set
-
getId
public static long getId(Element e)
Get the element id- Parameters:
e- element to inspect- Returns:
- element id
-
setId
public static void setId(Element e, long id)
Set the element id- Parameters:
e- element to adjustid-
-
-