org.eclipse.emf.emfstore.internal.server.conflictDetection
Class OppositeReservationMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,V>
              extended by org.eclipse.emf.emfstore.internal.server.conflictDetection.LinkedHashMapWithConflictBucketCandidate<ConflictBucketCandidate>
                  extended by org.eclipse.emf.emfstore.internal.server.conflictDetection.OppositeReservationMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,ConflictBucketCandidate>
Direct Known Subclasses:
ExistenceOppositeReservationMap

public class OppositeReservationMap
extends LinkedHashMapWithConflictBucketCandidate<ConflictBucketCandidate>

Tracks any reservation based an a opposite model element.

Author:
mkoegel, emueller
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
OppositeReservationMap(boolean hasOpposites)
          Constructor.
 
Method Summary
 Set<ConflictBucketCandidate> getAllConflictBucketCandidates()
          Returns all ConflictBucketCandidates.
 Set<ConflictBucketCandidate> getConflictBucketCandidates(String oppositeModelElement)
          Returns the ConflictBucketCandidates for a given opposite.
 boolean hasOpposites()
          Whether this reservation map has opposites at all.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.conflictDetection.LinkedHashMapWithConflictBucketCandidate
getConflictBucketCandidate, setConflictBucketCandidate
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

OppositeReservationMap

public OppositeReservationMap(boolean hasOpposites)
Constructor.

Parameters:
hasOpposites - whether this reservation map has opposites at all
Method Detail

getAllConflictBucketCandidates

public Set<ConflictBucketCandidate> getAllConflictBucketCandidates()
Description copied from class: LinkedHashMapWithConflictBucketCandidate
Returns all ConflictBucketCandidates.

Specified by:
getAllConflictBucketCandidates in class LinkedHashMapWithConflictBucketCandidate<ConflictBucketCandidate>
Returns:
a set of candidates.

hasOpposites

public boolean hasOpposites()
Whether this reservation map has opposites at all.

Returns:
true if this reservation map has opposites, false otherwise

getConflictBucketCandidates

public Set<ConflictBucketCandidate> getConflictBucketCandidates(String oppositeModelElement)
Returns the ConflictBucketCandidates for a given opposite.

Parameters:
oppositeModelElement - the opposite model element
Returns:
a set of ConflictBucketCandidates


Copyright © 2015. All Rights Reserved.