/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Throws {@link MutabilityException} if this instance is mutable. */ public final void throwIfMutable() { if (mutable) { throw new MutabilityException("mutable instance"); } } }
/** * Throws {@link MutabilityException} if this instance is * immutable. */ public final void throwIfImmutable() { if (!mutable) { throw new MutabilityException("immutable instance"); } }
/** * Constructs an instance. * * @param innerClasses {@code non-null;} list of inner class entries */ public AttInnerClasses(InnerClassList innerClasses) { super(ATTRIBUTE_NAME); try { if (innerClasses.isMutable()) { throw new MutabilityException("innerClasses.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("innerClasses == null"); } this.innerClasses = innerClasses; }
/** * Constructs an instance. * * @param lineNumbers {@code non-null;} list of line number entries */ public AttLineNumberTable(LineNumberList lineNumbers) { super(ATTRIBUTE_NAME); try { if (lineNumbers.isMutable()) { throw new MutabilityException("lineNumbers.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("lineNumbers == null"); } this.lineNumbers = lineNumbers; }
/** * Constructs an instance. * * @param innerClasses {@code non-null;} list of inner class entries */ public AttInnerClasses(InnerClassList innerClasses) { super(ATTRIBUTE_NAME); try { if (innerClasses.isMutable()) { throw new MutabilityException("innerClasses.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("innerClasses == null"); } this.innerClasses = innerClasses; }
/** * Constructs an instance. * * @param lineNumbers {@code non-null;} list of line number entries */ public AttLineNumberTable(LineNumberList lineNumbers) { super(ATTRIBUTE_NAME); try { if (lineNumbers.isMutable()) { throw new MutabilityException("lineNumbers.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("lineNumbers == null"); } this.lineNumbers = lineNumbers; }