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

org.testng.internal.Attributes Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.internal;

import org.testng.IAttributes;
import org.testng.collections.Maps;

import java.util.Map;
import java.util.Set;

/**
 * Simple implementation of IAttributes.
 */
public class Attributes implements IAttributes {

  private final Map m_attributes = Maps.newHashMap();

  @Override
  public Object getAttribute(String name) {
    return m_attributes.get(name);
  }

  @Override
  public Set getAttributeNames() {
    return m_attributes.keySet();
  }

  @Override
  public void setAttribute(String name, Object value) {
    m_attributes.put(name, value);
  }

  @Override
  public Object removeAttribute(String name) {
    return m_attributes.remove(name);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy