/** * Sets a message for the field replacing any existing value. * * @param message the message to set * @return the builder */ public SingleFieldBuilder<MType, BType, IType> setMessage( MType message) { if (message == null) { throw new NullPointerException(); } this.message = message; if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Sets a message for the field replacing any existing value. * * @param message the message to set * @return the builder */ public SingleFieldBuilder<MType, BType, IType> setMessage( MType message) { if (message == null) { throw new NullPointerException(); } this.message = message; if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Sets a message for the field replacing any existing value. * * @param message the message to set * @return the builder */ public SingleFieldBuilder<MType, BType, IType> setMessage( MType message) { if (message == null) { throw new NullPointerException(); } this.message = message; if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Sets a message for the field replacing any existing value. * * @param message the message to set * @return the builder */ public SingleFieldBuilder<MType, BType, IType> setMessage( MType message) { if (message == null) { throw new NullPointerException(); } this.message = message; if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Clears the value of the field. * * @return the builder */ @SuppressWarnings("unchecked") public SingleFieldBuilder<MType, BType, IType> clear() { message = (MType) (message != null ? message.getDefaultInstanceForType() : builder.getDefaultInstanceForType()); if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Clears the value of the field. * * @return the builder */ @SuppressWarnings("unchecked") public SingleFieldBuilder<MType, BType, IType> clear() { message = (MType) (message != null ? message.getDefaultInstanceForType() : builder.getDefaultInstanceForType()); if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Clears the value of the field. * * @return the builder */ @SuppressWarnings("unchecked") public SingleFieldBuilder<MType, BType, IType> clear() { message = (MType) (message != null ? message.getDefaultInstanceForType() : builder.getDefaultInstanceForType()); if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
/** * Clears the value of the field. * * @return the builder */ @SuppressWarnings("unchecked") public SingleFieldBuilder<MType, BType, IType> clear() { message = (MType) (message != null ? message.getDefaultInstanceForType() : builder.getDefaultInstanceForType()); if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }