Top Description Constructors Methods
net.sf.ehcache

public Class ElementIdHelper

extends Object
Class Inheritance

Provide 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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

element id
getId
(Element
element to inspect
e
)

Get the element id

public static boolean

Returns:

true if this element has an id set
hasId
(Element
element to inspect
e
)

Is element id set?

public static void
setId(Element
element to adjust
e
,
long id)

Set the element id

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ElementIdHelperback to summary
public ElementIdHelper()

Method Detail

getIdback to summary
public static long getId(Element e)

Get the element id

Parameters
e:Element

element to inspect

Returns:long

element id

hasIdback to summary
public static boolean hasId(Element e)

Is element id set?

Parameters
e:Element

element to inspect

Returns:boolean

true if this element has an id set

setIdback to summary
public static void setId(Element e, long id)

Set the element id

Parameters
e:Element

element to adjust