/** * {@inheritDoc} */ @Override public long getPosition() { return simpleStorageDescriptor.getPosition(); }
/** * {@inheritDoc} */ @Override public String toString() { ToStringBuilder toStringBuilder = new ToStringBuilder(this); toStringBuilder.append("channelId", channelId); toStringBuilder.append("position", simpleStorageDescriptor.getPosition()); toStringBuilder.append("size", simpleStorageDescriptor.getSize()); return toStringBuilder.toString(); }
/** * Joins the position and size information if possible contained in other descriptor. This * method will return true if the join was successfully done, and false if no join was done. The * join is possible only if the given position and size is pointing to the data that is next to * the data currently described in {@link SimpleStorageDescriptor}. * * @param other * Descriptor to join * @return This method will return true if the join was successfully done, and false if no join * was done. */ public boolean join(SimpleStorageDescriptor other) { return join(other.getPosition(), other.getSize()); }