@Override public void writeToParcel(Parcel dest, int flags) { dest.writeFloat(this.x); dest.writeFloat(this.getY()); if (getData() != null) { if (getData() instanceof Parcelable) { dest.writeInt(1); dest.writeParcelable((Parcelable) this.getData(), flags); } else { throw new ParcelFormatException("Cannot parcel an Entry with non-parcelable data"); } } else { dest.writeInt(0); } }
/** * Compares value, xIndex and data of the entries. Returns true if entries * are equal in those points, false if not. Does not check by hash-code like * it's done by the "equals" method. * * @param e * @return */ public boolean equalTo(Entry e) { if (e == null) return false; if (e.getData() != this.getData()) return false; if (Math.abs(e.x - this.x) > Utils.FLOAT_EPSILON) return false; if (Math.abs(e.getY() - this.getY()) > Utils.FLOAT_EPSILON) return false; return true; }
/** * returns an exact copy of the entry * * @return */ public Entry copy() { Entry e = new Entry(x, getY(), getData()); return e; }
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeFloat(this.x); dest.writeFloat(this.getY()); if (getData() != null) { if (getData() instanceof Parcelable) { dest.writeInt(1); dest.writeParcelable((Parcelable) this.getData(), flags); } else { throw new ParcelFormatException("Cannot parcel an Entry with non-parcelable data"); } } else { dest.writeInt(0); } }
/** * Compares value, xIndex and data of the entries. Returns true if entries * are equal in those points, false if not. Does not check by hash-code like * it's done by the "equals" method. * * @param e * @return */ public boolean equalTo(Entry e) { if (e == null) return false; if (e.getData() != this.getData()) return false; if (Math.abs(e.x - this.x) > Utils.FLOAT_EPSILON) return false; if (Math.abs(e.getY() - this.getY()) > Utils.FLOAT_EPSILON) return false; return true; }
/** * Compares value, xIndex and data of the entries. Returns true if entries * are equal in those points, false if not. Does not check by hash-code like * it's done by the "equals" method. * * @param e * @return */ public boolean equalTo(Entry e) { if (e == null) return false; if (e.getData() != this.getData()) return false; if (Math.abs(e.x - this.x) > Utils.FLOAT_EPSILON) return false; if (Math.abs(e.getY() - this.getY()) > Utils.FLOAT_EPSILON) return false; return true; }
/** * Compares value, xIndex and data of the entries. Returns true if entries * are equal in those points, false if not. Does not check by hash-code like * it's done by the "equals" method. * * @param e * @return */ public boolean equalTo(Entry e) { if (e == null) return false; if (e.getData() != this.getData()) return false; if (Math.abs(e.x - this.x) > Utils.FLOAT_EPSILON) return false; if (Math.abs(e.getY() - this.getY()) > Utils.FLOAT_EPSILON) return false; return true; }
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeFloat(this.x); dest.writeFloat(this.getY()); if (getData() != null) { if (getData() instanceof Parcelable) { dest.writeInt(1); dest.writeParcelable((Parcelable) this.getData(), flags); } else { throw new ParcelFormatException("Cannot parcel an Entry with non-parcelable data"); } } else { dest.writeInt(0); } }
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.mXIndex); dest.writeFloat(this.x); dest.writeFloat(this.getY()); if (getData() != null) { if (getData() instanceof Parcelable) { dest.writeInt(1); dest.writeParcelable((Parcelable) this.getData(), flags); } else { throw new ParcelFormatException("Cannot parcel an Entry with non-parcelable data"); } } else { dest.writeInt(0); } }
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeFloat(this.x); dest.writeFloat(this.getY()); if (getData() != null) { if (getData() instanceof Parcelable) { dest.writeInt(1); dest.writeParcelable((Parcelable) this.getData(), flags); } else { throw new ParcelFormatException("Cannot parcel an Entry with non-parcelable data"); } } else { dest.writeInt(0); } }
/** * Compares value, xIndex and data of the entries. Returns true if entries * are equal in those points, false if not. Does not check by hash-code like * it's done by the "equals" method. * * @param e * @return */ public boolean equalTo(Entry e) { if (e == null) { return false; } if (e.getData() != this.getData()) { return false; } if (Math.abs(e.x - this.x) > Utils.FLOAT_EPSILON) { return false; } return !(Math.abs(e.getY() - this.getY()) > Utils.FLOAT_EPSILON); }
/** * returns an exact copy of the entry * * @return */ public Entry copy() { Entry e = new Entry(x, getY(), getData()); return e; }
/** * returns an exact copy of the entry * * @return */ public Entry copy() { Entry e = new Entry(mXIndex,x, getY(), getData()); return e; }
/** * returns an exact copy of the entry * * @return */ public Entry copy() { Entry e = new Entry(x, getY(), getData()); return e; }
/** * returns an exact copy of the entry * * @return */ public Entry copy() { Entry e = new Entry(x, getY(), getData()); return e; }