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

com.osohq.oso.Predicate Maven / Gradle / Ivy

There is a newer version: 0.27.3
Show newest version
package com.osohq.oso;

import java.util.*;

public class Predicate {
  public String name;
  public List args;

  public Predicate(String name, List args) {
    this.name = name;
    this.args = args;
  }

  @Override
  public boolean equals(Object obj) {
    if (!(obj instanceof Predicate)) {
      return false;
    }
    if (((Predicate) obj).name.equals(this.name) && ((Predicate) obj).args.equals(this.args)) {
      return true;
    } else {
      return false;
    }
  }
}