Code example for Collection

Methods: equals

0
    if (!(o instanceof Datum)) {
      return (false); 
    } 
 
    Datum<LabelType, FeatureType> d = (Datum<LabelType, FeatureType>) o;
    return features.equals(d.asFeatures());
  } 
 
  public int hashCode() { 
    return features.hashCode();
  } 
 
  private static final long serialVersionUID = -4857004070061779966L;
 
}