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

com.expleague.ml.meta.DSItem Maven / Gradle / Ivy

package com.expleague.ml.meta;

/**
 * User: solar
 * Date: 20.06.14
 * Time: 15:13
 */
public interface DSItem {
  String id();

  abstract class Stub implements DSItem {
    @Override
    public boolean equals(final Object o) {
      if (this == o)
        return true;
      if (!(o instanceof DSItem))
        return false;

      final DSItem other = (DSItem) o;
      return id().equals(other.id());
    }

    @Override
    public int hashCode() {
      return id().hashCode();
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy