/** * Set the time the bundle will execute. * @param timestamp Date */ public void setTimestamp(final Date timestamp) { this.timestamp = clone(timestamp); }
/** * Return the time the bundle will execute. * @return a Date */ public Date getTimestamp() { return clone(timestamp); }
/** * Create an OSCBundle, specifying the packets and timestamp. * @param packets the packets that make up the bundle * @param timestamp the time to execute the bundle */ public OSCBundle(final Collection<OSCPacket> packets, final Date timestamp) { if (null == packets) { this.packets = new LinkedList<OSCPacket>(); } else { this.packets = new ArrayList<OSCPacket>(packets); } this.timestamp = clone(timestamp); }