org.omnaest.utils.structure.table.concrete.internal
Class CellDataImpl<E>
java.lang.Object
org.omnaest.utils.structure.table.concrete.internal.CellDataImpl<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- TableInternal.CellData<E>
public class CellDataImpl<E>
- extends Object
- implements TableInternal.CellData<E>
Wrapper for an element, which can be shared between Tables to allow the modification from all of them. As a difference
to CellImpl this wrapper has no reference to any TableInternal.StripeData instance.
- Author:
- Omnaest
- See Also:
TableInternal.CellInternal,
CellImpl,
TableInternal.CellData
element
protected E element
CellDataImpl
public CellDataImpl()
getElement
public E getElement()
- Description copied from interface:
TableInternal.CellData
- Returns the element hold by the
TableInternal.CellData
- Specified by:
getElement in interface TableInternal.CellData<E>
- Returns:
setElement
public void setElement(E element)
- Description copied from interface:
TableInternal.CellData
- Sets the given element to the
TableInternal.CellData
- Specified by:
setElement in interface TableInternal.CellData<E>
hasElement
public boolean hasElement(E element)
- Description copied from interface:
TableInternal.CellData
- Returns true if the
TableInternal.CellData element is equal to the given element
- Specified by:
hasElement in interface TableInternal.CellData<E>
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.