All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.joinedworkz.common.adapter.ResourceProvideAdapter Maven / Gradle / Ivy

There is a newer version: 1.3.46
Show newest version
package org.joinedworkz.common.adapter;

import java.util.Map;
import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtext.xbase.lib.CollectionLiterals;
import org.eclipse.xtext.xbase.lib.Pure;
import org.joinedworkz.core.model.CmnAdapter;
import org.joinedworkz.core.model.CmnComponent;
import org.joinedworkz.core.model.CmnProvidedResource;

@Accessors
@SuppressWarnings("all")
public class ResourceProvideAdapter implements CmnAdapter {
  private final Map providedResources = CollectionLiterals.newLinkedHashMap();

  public CmnProvidedResource putProvidedResource(final CmnComponent component, final CmnProvidedResource providedResource) {
    return this.providedResources.put(component, providedResource);
  }

  public CmnProvidedResource getProvidedResource(final CmnComponent component) {
    return this.providedResources.get(component);
  }

  @Pure
  public Map getProvidedResources() {
    return this.providedResources;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy