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 java.lang.Object
Since:
1.14
Author:
Sören Henning
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected com.google.common.collect.BiMap<K,​V> index  
    protected java.util.function.Function<V,​K> keyCreator  
    protected java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes  
    protected org.eclipse.emf.ecore.EReference reference  
  • 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, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, java.util.function.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, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, java.util.function.Function<V,​K> keyCreator, java.util.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, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, java.util.function.Function<V,​K> keyCreator)  
    V 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 java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes
    • keyCreator

      protected final java.util.function.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, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, java.util.function.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, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, java.util.function.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, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedReferenceAttributes, java.util.function.Function<V,​K> keyCreator, java.util.Collection<V> values)