org.eclipse.emf.spi.cdo
Class InternalCDOView.ViewAndState
java.lang.Object
org.eclipse.emf.spi.cdo.InternalCDOView.ViewAndState
- Enclosing interface:
- InternalCDOView
- public static final class InternalCDOView.ViewAndState
- extends Object
Optimizes the storage of CDOObject.cdoView()
and CDOObject.cdoState()
. All objects of a view
share a small number of CDOState
literals, so they are moved into a final AbstractCDOView.viewAndStates array.
For the TRANSIENT
state, where there is no view associated with a CDOObject
, this class
maintains a static VIEW_AND_STATES
array.
- Since:
- 4.2
TRANSIENT
public static final InternalCDOView.ViewAndState TRANSIENT
view
public final InternalCDOView view
state
public final CDOState state
InternalCDOView.ViewAndState
public InternalCDOView.ViewAndState(InternalCDOView view,
CDOState state)
getViewAndState
public InternalCDOView.ViewAndState getViewAndState(CDOState state)
toString
public String toString()
- Overrides:
toString
in class Object
create
public static InternalCDOView.ViewAndState[] create(InternalCDOView view)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.