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

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

package marcel.lang.dynamic;

import marcel.lang.DynamicObject;

import java.util.LinkedList;
import java.util.Queue;

public class DynamicQueue extends DynamicCollection {
  public DynamicQueue(Queue value) {
    super(value);
  }

  @Override
  Queue newEmptyInstance() {
    return new LinkedList();
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy