/*license*\ XBN-Java: Copyright (C) 2014, Jeff Epstein (aliteralmind __DASH__ github __AT__ yahoo __DOT__ com) This software is dual-licensed under the: - Lesser General Public License (LGPL) version 3.0 or, at your option, any later version; - Apache Software License (ASL) version 2.0. Either license may be applied at your discretion. More information may be found at - http://en.wikipedia.org/wiki/Multi-licensing. The text of both licenses is available in the root directory of this project, under the names "LICENSE_lgpl-3.0.txt" and "LICENSE_asl-2.0.txt". The latest copies may be downloaded at: - LGPL 3.0: https://www.gnu.org/licenses/lgpl-3.0.txt - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt \*license*/ package com.github.xbn.array.z; import com.github.xbn.array.XbnArrayIndexOutOfBoundsException; /** <p>For <a href="{@docRoot}/com/github/xbn/neederneedable/Needable.html#direct">directly</a> configuring an {@link com.github.xbn.array.XbnArrayIndexOutOfBoundsException XbnArrayIndexOutOfBoundsException}.</p> <p><i>{@code XbnArray}{@code IndexOutOfBoundsException_Cfg} and {@code XbnString}{@code IndexOutOfBoundsException_Cfg} both derive from {@code Xbn}{@code IndexOutOfBoundsException_Cfg}. <b>Do not edit any class except {@code Xbn}{@code IndexOutOfBoundsException_Cfg}</b></i></p> * @since 0.1.0 * @author Copyright (C) 2014, Jeff Epstein ({@code aliteralmind __DASH__ github __AT__ yahoo __DOT__ com}), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. <a href="http://xbnjava.aliteralmind.com">{@code http://xbnjava.aliteralmind.com}</a>, <a href="https://github.com/aliteralmind/xbnjava">{@code https://github.com/aliteralmind/xbnjava}</a> **/ public class XbnArrayIndexOutOfBoundsException_Cfg extends XbnIbxBase_Cfg { /** <p>Create a new instance.</p> * <p>Equal to <br/>     <code>{@link XbnIbxBase_Cfg#XbnIbxBase_Cfg() super}()</code></p> */ public XbnArrayIndexOutOfBoundsException_Cfg() { super(); } //Delete in XbnStr_ingIndexOutOfBoundsException...START /** <p>Set the absolute length from a non-primitive array.</p> * @return <code><!-- GENERIC PARAMETERS FAIL IN JAVADOC --><a href="#absMinAndArrayLength(int, E[])">absMinAndArrayLength</a>(0, array)</code> */ public <E> XbnArrayIndexOutOfBoundsException_Cfg absArrayLength(E[] array) { return absMinAndArrayLength(0, array); } /** <p>Set the absolute bounds from the length of a non-primitive array.</p> * @return <code><!-- GENERIC PARAMETERS FAIL IN JAVADOC --><a href="#absMinAndArrayLength(int, E[], java.lang.String, java.lang.String)">absMinAndArrayLength</a>(0, array, null, array_name)</code> */ public <E> XbnArrayIndexOutOfBoundsException_Cfg absArrayLength(E[] array, String array_name) { return absMinAndArrayLength(0, array, null, array_name); } /** <p>Set the absolute bounds from the length of a non-primitive array.</p> * @return <code><!-- GENERIC PARAMETERS FAIL IN JAVADOC --><a href="#absMinAndArrayLength(int, E[], java.lang.String, java.lang.String)">absMinAndArrayLength</a>(min_inclusive, array, null, null)</code> */ public <E> XbnArrayIndexOutOfBoundsException_Cfg absMinAndArrayLength(int min_inclusive, E[] array) { return absMinAndArrayLength(min_inclusive, array, null, null); } /** <p>Set the absolute bounds from the length of a non-primitive array.</p> * <p>Equal to <br/>     <code><!-- GENERIC PARAMETERS FAIL IN @link --><a href="XbnArrayIndexOutOfBoundsException_Cfg.html#setAbsMinAndArrayLength(int, E[], java.lang.String, java.lang.String)">setAbsMinAndArrayLength</a>(min_inclusive, array, min_name, array_name)*</code></p> * @return <i>{@code this}</i> * @see <code><!-- GENERIC PARAMETERS FAIL IN JAVADOC --><a href="#absArrayLength(E[])">absArrayLength</a>(o[])</code> * @see <code><!-- GENERIC PARAMETERS FAIL IN JAVADOC --><a href="#absArrayLength(E[], java.lang.String)">absArrayLength</a>(o[],s)</code> * @see <code><!-- GENERIC PARAMETERS FAIL IN JAVADOC --><a href="#absMinAndArrayLength(int, E[])">absMinAndArrayLength</a>(i,o[])</code> */ public <E> XbnArrayIndexOutOfBoundsException_Cfg absMinAndArrayLength(int min_inclusive, E[] array, String min_name, String array_name) { setAbsMinAndArrayLength(min_inclusive, array, min_name, array_name); return this; } /** <p>Set the absolute length from a(n object known to be a) primitive array.</p> * @return <code>{@link #absMinAndPArrayLength(int, Object) absMinAndPArrayLength}(0, obj_thatIsPrimArr)</code> */ public XbnArrayIndexOutOfBoundsException_Cfg absPArrayLength(Object obj_thatIsPrimArr) { return absMinAndPArrayLength(0, obj_thatIsPrimArr); } /** <p>Set the absolute bounds from the length of a(n object known to be a) primitive array.</p> * @return <code>{@link #absMinAndPArrayLength(int, Object, String, String) absMinAndPArrayLength}(0, obj_thatIsPrimArr, null, array_name)</code> */ public XbnArrayIndexOutOfBoundsException_Cfg absPArrayLength(Object obj_thatIsPrimArr, String array_name) { return absMinAndPArrayLength(0, obj_thatIsPrimArr, null, array_name); } /** <p>Set the absolute bounds from the length of a(n object known to be a) primitive array.</p> * @return <code>{@link #absMinAndPArrayLength(int, Object, String, String) absMinAndPArrayLength}(min_inclusive, obj_thatIsPrimArr, null, null)</code> */ public XbnArrayIndexOutOfBoundsException_Cfg absMinAndPArrayLength(int min_inclusive, Object obj_thatIsPrimArr) { return absMinAndPArrayLength(min_inclusive, obj_thatIsPrimArr, null, null); } /** <p>Set the absolute bounds from the length of a(n object known to be a) primitive array.</p> * <p>Equal to <br/>     <code>{@link XbnArrayIndexOutOfBoundsException_Cfg#setAbsMinAndPArrayLength(int, Object, String, String) setAbsMinAndPArrayLength}(min_inclusive, obj_thatIsPrimArr, min_name, array_name)*</code></p> * @return <i>{@code this}</i> * @see #absPArrayLength(Object) absPArrayLength(o) * @see #absPArrayLength(Object, String) absPArrayLength(o,s) * @see #absMinAndPArrayLength(int, Object) absMinAndPArrayLength(i,o) */ public XbnArrayIndexOutOfBoundsException_Cfg absMinAndPArrayLength(int min_inclusive, Object obj_thatIsPrimArr, String min_name, String array_name) { setAbsMinAndPArrayLength(min_inclusive, obj_thatIsPrimArr, min_name, array_name); return this; } //Delete in XbnStr_ingIndexOutOfBoundsException...END /** <p>Set the absolute bounds.</p> * <p>Equal to <br/>     <code>{@link com.github.xbn.array.z.XbnArrayIndexOutOfBoundsException_Cfg#setAbsoluteBounds(int, int) setAbsoluteBounds}(min_inclusive, max_exclusive)*</code></p> * @return <i>{@code this}</i> */ public XbnArrayIndexOutOfBoundsException_Cfg absBounds(int min_inclusive, int max_exclusive) { setAbsoluteBounds(min_inclusive, max_exclusive); return this; } /** <p>Set the absolute bounds.</p> * <p>Equal to <br/>     <code>{@link com.github.xbn.array.z.XbnArrayIndexOutOfBoundsException_Cfg#setAbsoluteBounds(int, int, String, String) setAbsoluteBounds}(min_inclusive, max_exclusive, min_name, max_name)*</code></p> * @return <i>{@code this}</i> */ public XbnArrayIndexOutOfBoundsException_Cfg absBounds(int min_inclusive, int max_exclusive, String min_name, String max_name) { setAbsoluteBounds(min_inclusive, max_exclusive, min_name, max_name); return this; } /** <p>Set the absolute (exclusive) maximum.</p> * @return {@link #absBounds(int, int) absBounds(0, max_exclusive)} */ public XbnArrayIndexOutOfBoundsException_Cfg absMaxX(int max_exclusive) { return absBounds(0, max_exclusive); } /** <p>Set the absolute (exclusive) maximum.</p> * @return {@link #absBounds(int, int, String, String) absBounds(0, max_exclusive, null, max_name)} */ public XbnArrayIndexOutOfBoundsException_Cfg absMaxX(int max_exclusive, String max_name) { return absBounds(0, max_exclusive, null, max_name); } /** <p>Set the index that violates the absolute bounds.</p> * <p>Equal to <br/>     <code>{@link com.github.xbn.array.z.XbnArrayIndexOutOfBoundsException_Cfg#setBadIndex(int) setBadIndex}(index)*</code></p> * @return <i>{@code this}</i> */ public XbnArrayIndexOutOfBoundsException_Cfg badIndex(int index) { setBadIndex(index); return this; } /** <p>Set the index that violates the absolute bounds.</p> * <p>Equal to <br/>     <code>{@link com.github.xbn.array.z.XbnArrayIndexOutOfBoundsException_Cfg#setBadIndex(int, String) setBadIndex}(index, idx_name)*</code></p> * @return <i>{@code this}</i> */ public XbnArrayIndexOutOfBoundsException_Cfg badIndex(int index, String idx_name) { setBadIndex(index, idx_name); return this; } /** <p>Set the index-range that violates the absolute bounds.</p> * <p>Equal to <br/>     <code>{@link com.github.xbn.array.z.XbnArrayIndexOutOfBoundsException_Cfg#setBadRange(int, int) setBadRange}(min_inclusive, max_exclusive)*</code></p> * @return <i>{@code this}</i> */ public XbnArrayIndexOutOfBoundsException_Cfg badRange(int min_inclusive, int max_exclusive) { setBadRange(min_inclusive, max_exclusive); return this; } /** <p>Set the index-range that violates the absolute bounds.</p> * <p>Equal to <br/>     <code>{@link com.github.xbn.array.z.XbnArrayIndexOutOfBoundsException_Cfg#setBadRange(int, int, String, String) setBadRange}(min_inclusive, max_exclusive, min_name, max_name)*</code></p> * @return <i>{@code this}</i> */ public XbnArrayIndexOutOfBoundsException_Cfg badRange(int min_inclusive, int max_exclusive, String min_name, String max_name) { setBadRange(min_inclusive, max_exclusive, min_name, max_name); return this; } /** <p>Create an {@code XbnArrayIndexOutOfBoundsException} as configured.</p> * @return {@link #buildWithInfo(Object) buildWithInfo}{@code (null)} */ public XbnArrayIndexOutOfBoundsException build() { return buildWithInfo(null); } /** <p>Create an {@code XbnArrayIndexOutOfBoundsException} as configured.</p> * @return {@link #buildWithCauseInfo(Throwable, Object) buildWithCauseInfo}{@code (null, xtra_errInfo)} */ public XbnArrayIndexOutOfBoundsException buildWithInfo(Object xtra_errInfo) { return buildWithCauseInfo(null, xtra_errInfo); } /** <p>Create an {@code XbnArrayIndexOutOfBoundsException} as configured.</p> * @return {@link #buildWithCauseInfo(Throwable, Object) buildWithCauseInfo}{@code (cause, null)} */ public XbnArrayIndexOutOfBoundsException buildWithCause(Throwable cause) { return buildWithCauseInfo(cause, null); } /** <p>Create an {@code XbnArrayIndexOutOfBoundsException} as configured.</p> <p>This<ol> <li>Calls <code><!-- FAILS AS A @link --><a href="../XbnIbxBase.html#setExtraErrInfoCause(java.lang.Object, java.lang.Throwable)">setExtraErrInfoCause</a>(xtra_errInfo, cause)*</code></li> <li><b><i>returns</i></b> a <br/>     <code>(new {@link com.github.xbn.array.XbnArrayIndexOutOfBoundsException#XbnArrayIndexOutOfBoundsException(XIbxData) XbnArrayIndexOutOfBoundsException}({@link XbnIbxBase_Cfg#xdata xdata}*))</code></li> </ol></p> * @see #build() * @see #buildWithInfo(Object) buildWithInfo(o) * @see #buildWithCause(Throwable) buildWithCause(thr) */ public XbnArrayIndexOutOfBoundsException buildWithCauseInfo(Throwable cause, Object xtra_errInfo) { setExtraErrInfoCause(xtra_errInfo, cause); return (new XbnArrayIndexOutOfBoundsException(xdata)); } public XbnArrayIndexOutOfBoundsException_Cfg chainID(boolean do_setStatic, Object id) { super.chainID(do_setStatic, id); return this; } }