@Override public Long getValueAsLong() { return attribute.getValueAsLong(); }
@Override public Long getValueAsLong() { return attribute.getValueAsLong(); }
/** * Retrieves the value for the specified attribute as a Long, if available. * If the attribute has more than one value, then the first value will be * returned. * * @param attributeName The name of the attribute for which to retrieve the * value. It must not be {@code null}. * * @return The Long value parsed from the specified attribute, or * {@code null} if that attribute is not available or the value * cannot be parsed as a Long. */ public Long getAttributeValueAsLong(final String attributeName) { ensureNotNull(attributeName); final Attribute a = attributes.get(toLowerCase(attributeName)); if (a == null) { return null; } else { return a.getValueAsLong(); } }
/** * Retrieves the value for the specified attribute as a Long, if available. * If the attribute has more than one value, then the first value will be * returned. * * @param attributeName The name of the attribute for which to retrieve the * value. It must not be {@code null}. * * @return The Long value parsed from the specified attribute, or * {@code null} if that attribute is not available or the value * cannot be parsed as a Long. */ public Long getAttributeValueAsLong(final String attributeName) { ensureNotNull(attributeName); final Attribute a = attributes.get(toLowerCase(attributeName)); if (a == null) { return null; } else { return a.getValueAsLong(); } }
/** * Retrieves the value for the specified attribute as a Long, if available. * If the attribute has more than one value, then the first value will be * returned. * * @param attributeName The name of the attribute for which to retrieve the * value. It must not be {@code null}. * * @return The Long value parsed from the specified attribute, or * {@code null} if that attribute is not available or the value * cannot be parsed as a Long. */ public Long getAttributeValueAsLong(final String attributeName) { ensureNotNull(attributeName); final Attribute a = getAttribute(attributeName); if (a == null) { return null; } else { return a.getValueAsLong(); } }
/** * Retrieves the value for the specified attribute as a Long, if available. * If the attribute has more than one value, then the first value will be * returned. * * @param attributeName The name of the attribute for which to retrieve the * value. It must not be {@code null}. * * @return The Long value parsed from the specified attribute, or * {@code null} if that attribute is not available or the value * cannot be parsed as a Long. */ public Long getAttributeValueAsLong(final String attributeName) { ensureNotNull(attributeName); final Attribute a = getAttribute(attributeName); if (a == null) { return null; } else { return a.getValueAsLong(); } }
final long total = a.getValueAsLong(); final long failed = entry.getLong( "extended-op-" + dashedOID + "-failed-count");
putMember(out, key, attrList.get(0).getValueAsLong(), null, dir.ldapValueMatchingPattern());