org.eclipse.emf.emfstore.internal.server.model.impl.api.versionspec
Class ESPrimaryVersionSpecImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<U,T>
      extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.versionspec.ESVersionSpecImpl<ESPrimaryVersionSpec,PrimaryVersionSpec>
          extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.versionspec.ESPrimaryVersionSpecImpl
All Implemented Interfaces:
InternalAPIDelegator<ESPrimaryVersionSpec,PrimaryVersionSpec>, ESPrimaryVersionSpec, ESVersionSpec

public class ESPrimaryVersionSpecImpl
extends ESVersionSpecImpl<ESPrimaryVersionSpec,PrimaryVersionSpec>
implements ESPrimaryVersionSpec

Mapping between ESPrimaryVersionSpec and PrimaryVersionSpec.

Author:
emueller

Field Summary
 
Fields inherited from interface org.eclipse.emf.emfstore.server.model.versionspec.ESVersionSpec
BASE, BRANCH_DEFAULT_NAME, FACTORY, GLOBAL, HEAD
 
Constructor Summary
ESPrimaryVersionSpecImpl(PrimaryVersionSpec primaryVersionSpec)
          Constructor.
 
Method Summary
 boolean equals(Object object)
          
 int getIdentifier()
           Returns the globally unique numeric identifier.
 int hashCode()
          
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.model.impl.api.versionspec.ESVersionSpecImpl
getBranch
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl
toInternalAPI
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.emfstore.server.model.versionspec.ESVersionSpec
getBranch
 

Constructor Detail

ESPrimaryVersionSpecImpl

public ESPrimaryVersionSpecImpl(PrimaryVersionSpec primaryVersionSpec)
Constructor.

Parameters:
primaryVersionSpec - the delegate
Method Detail

getIdentifier

public int getIdentifier()

Returns the globally unique numeric identifier.

This identifier is also unique even in case of branches.

Specified by:
getIdentifier in interface ESPrimaryVersionSpec
Returns:
the globally unique numeric identifier of this version
See Also:
ESPrimaryVersionSpec.getIdentifier()

equals

public boolean equals(Object object)
Description copied from class: AbstractAPIImpl

Overrides:
equals in class AbstractAPIImpl<ESPrimaryVersionSpec,PrimaryVersionSpec>
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Description copied from class: AbstractAPIImpl

Overrides:
hashCode in class AbstractAPIImpl<ESPrimaryVersionSpec,PrimaryVersionSpec>
See Also:
Object.hashCode()


Copyright © 2015. All Rights Reserved.