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

marcel.lang.dynamic.DynamicSet Maven / Gradle / Ivy

package marcel.lang.dynamic;

import marcel.lang.DynamicObject;

import java.util.HashSet;
import java.util.Set;

public class DynamicSet extends DynamicCollection {
  public DynamicSet(Set value) {
    super(value);
  }

  @Override
  Set newEmptyInstance() {
    return new HashSet();
  }

  @Override
  public DynamicObject invokeMethod(String name, Object... args) {
    try {
      return super.invokeMethod(name, args);
    } catch (MissingMethodException e) {
      return invokeMethod(Set.class, name, args);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy