Class EReferenceIndex<K,V extends org.eclipse.emf.ecore.EObject>

java.lang.Object
kieker.analysis.util.emf.EReferenceIndex<K,V>
Type Parameters:
K -
V -

public final class EReferenceIndex<K,V extends org.eclipse.emf.ecore.EObject> extends Object
Since:
1.14
Author:
Sören Henning
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.google.common.collect.BiMap<K,V>
     
    protected final Function<V,K>
     
    protected final Collection<org.eclipse.emf.ecore.EStructuralFeature>
     
    protected final org.eclipse.emf.ecore.EReference
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(K key)
     
    static <K, V extends org.eclipse.emf.ecore.EObject>
    EReferenceIndex<K,V>
    create(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, Function<V,K> keyCreator)
     
    static <K, V extends org.eclipse.emf.ecore.EObject>
    EReferenceIndex<K,V>
    create(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, Function<V,K> keyCreator, Collection<V> values)
     
    static <K, V extends org.eclipse.emf.ecore.EObject>
    EReferenceIndex<K,V>
    createEmpty(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, Function<V,K> keyCreator)
     
    get(K key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • index

      protected final com.google.common.collect.BiMap<K,V extends org.eclipse.emf.ecore.EObject> index
    • reference

      protected final org.eclipse.emf.ecore.EReference reference
    • observedReferenceAttributes

      protected final Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes
    • keyCreator

      protected final Function<V extends org.eclipse.emf.ecore.EObject,K> keyCreator
  • Method Details

    • contains

      public boolean contains(K key)
    • get

      public V get(K key)
    • createEmpty

      public static <K, V extends org.eclipse.emf.ecore.EObject> EReferenceIndex<K,V> createEmpty(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, Function<V,K> keyCreator)
    • create

      public static <K, V extends org.eclipse.emf.ecore.EObject> EReferenceIndex<K,V> create(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, Function<V,K> keyCreator)
    • create

      public static <K, V extends org.eclipse.emf.ecore.EObject> EReferenceIndex<K,V> create(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, Function<V,K> keyCreator, Collection<V> values)