/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** {@inheritDoc} */ @Override public int getAbsoluteItemOffset(Item item) { OffsettedItem oi = (OffsettedItem) item; return oi.getAbsoluteOffset(); }
/** * Gets the absolute offset of the given item, returning {@code 0} * if handed {@code null}. * * @param item {@code null-ok;} the item in question * @return {@code >= 0;} the item's absolute offset, or {@code 0} * if {@code item == null} */ public static int getAbsoluteOffsetOr0(OffsettedItem item) { if (item == null) { return 0; } return item.getAbsoluteOffset(); }
/** * Gets the absolute offset of the given item, returning {@code 0} * if handed {@code null}. * * @param item {@code null-ok;} the item in question * @return {@code >= 0;} the item's absolute offset, or {@code 0} * if {@code item == null} */ public static int getAbsoluteOffsetOr0(OffsettedItem item) { if (item == null) { return 0; } return item.getAbsoluteOffset(); }
/** * Gets the absolute offset of the given item, returning {@code 0} * if handed {@code null}. * * @param item {@code null-ok;} the item in question * @return {@code >= 0;} the item's absolute offset, or {@code 0} * if {@code item == null} */ public static int getAbsoluteOffsetOr0(OffsettedItem item) { if (item == null) { return 0; } return item.getAbsoluteOffset(); }
/** * Gets the absolute offset of the given item, returning {@code 0} * if handed {@code null}. * * @param item {@code null-ok;} the item in question * @return {@code >= 0;} the item's absolute offset, or {@code 0} * if {@code item == null} */ public static int getAbsoluteOffsetOr0(OffsettedItem item) { if (item == null) { return 0; } return item.getAbsoluteOffset(); }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }
/** * Gets the absolute offset of this item as a string, suitable for * including in annotations. * * @return {@code non-null;} the offset string */ public final String offsetString() { return '[' + Integer.toHexString(getAbsoluteOffset()) + ']'; }