/** * Compares this object to the specified object. The result is true if and only if the argument is not null and is the same type that contains the same value as this object. * @param obj obj the object to compare with. * @return true if the objects are the same; false otherwise. */ public boolean equals(Object obj) { if (obj instanceof WheelSpeed) { WheelSpeed other = (WheelSpeed) obj; if (velocity == null) { if (other.velocity != null) { return false; } } else { if (! velocity.equals(other.velocity)) { return false; } } return true; } return false; }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (velocity != null ? velocity.hashCode() : 0); return hash; }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { velocity = (org.ccsds.moims.mo.mal.structures.DoubleList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.DoubleList()); return this; }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { inPhase = (org.ccsds.moims.mo.mal.structures.DoubleList) decoder.decodeNullableElement(new org.ccsds.moims.mo.mal.structures.DoubleList()); quadrature = (org.ccsds.moims.mo.mal.structures.DoubleList) decoder.decodeNullableElement(new org.ccsds.moims.mo.mal.structures.DoubleList()); return this; }
return new DoubleList();