Lines Matching refs:defaultValue

116      * {@link Function}, or {@code defaultValue} if the attribute does not
123 * @param defaultValue
127 public <T> T as(final Function<ByteString, ? extends T, NeverThrowsException> f, final T defaultValue) {
131 return defaultValue;
147 * {@code defaultValue} if the attribute does not contain any values.
149 * @param defaultValue
153 public boolean asBoolean(final boolean defaultValue) {
154 return as(Functions.byteStringToBoolean(), defaultValue);
168 * Returns the first value, or {@code defaultValue} if the attribute does
171 * @param defaultValue
175 public ByteString asByteString(final ByteString defaultValue) {
176 return as(Functions.<ByteString> identityFunction(), defaultValue);
192 * generalized time syntax, or {@code defaultValue} if the attribute does
195 * @param defaultValue
199 public GeneralizedTime asGeneralizedTime(final GeneralizedTime defaultValue) {
200 return as(Functions.byteStringToGeneralizedTime(), defaultValue);
215 * {@code defaultValue} if the attribute does not contain any values.
217 * @param defaultValue
221 public int asInteger(final int defaultValue) {
222 return as(Functions.byteStringToInteger(), defaultValue);
237 * {@code defaultValue} if the attribute does not contain any values.
239 * @param defaultValue
243 public long asLong(final long defaultValue) {
244 return as(Functions.byteStringToLong(), defaultValue);
452 * {@code defaultValue} if the attribute does not contain any values.
454 * @param defaultValue
458 public String asString(final String defaultValue) {
459 return as(Functions.byteStringToString(), defaultValue);