org.eclipse.emf.emfstore.internal.common.api
Class AbstractAPIImpl<API,INTERNAL extends APIDelegate<API>>

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<API,INTERNAL>
Type Parameters:
INTERNAL - the internal API type to be mapped onto an API implementation class
API - the interface available in the API
All Implemented Interfaces:
InternalAPIDelegator<API,INTERNAL>
Direct Known Subclasses:
ESBranchInfoImpl, ESChangePackageImpl, ESConflictImpl, ESGlobalProjectIdImpl, ESHistoryInfoImpl, ESHistoryQueryImpl, ESLocalProjectImpl, ESLogMessageImpl, ESModelElementIdImpl, ESModelElementIdToEObjectMappingImpl, ESMutatorConfigImpl, ESNotificationInfoImpl, ESOperationImpl, ESServerImpl, ESSessionIdImpl, ESTestConfigImpl, ESUsersessionImpl, ESVersionSpecImpl, ESWorkspaceImpl

public abstract class AbstractAPIImpl<API,INTERNAL extends APIDelegate<API>>
extends Object
implements InternalAPIDelegator<API,INTERNAL>

Common base class for all API implementation classes.

Given an internal type that defines an APIDelegate to an API type and a concrete API implementation class that delegates to the internal type by means of the InternalAPIDelegator interface, this class is responsible for setting up the mapping from the API type to the internal one.

Author:
emueller
See Also:
InternalAPIDelegator

Method Summary
 boolean equals(Object obj)
          
 int hashCode()
          
 INTERNAL toInternalAPI()
          Returns the internal interface of this class.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toInternalAPI

public INTERNAL toInternalAPI()
Returns the internal interface of this class.

Specified by:
toInternalAPI in interface InternalAPIDelegator<API,INTERNAL extends APIDelegate<API>>
Returns:
the internal interface of this class
See Also:
InternalAPIDelegator.toInternalAPI()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2015. All Rights Reserved.