| | |
| | | import org.opends.sdk.schema.AttributeType; |
| | | import org.opends.sdk.schema.MatchingRule; |
| | | |
| | | import com.sun.opends.sdk.util.Function; |
| | | import com.sun.opends.sdk.util.Validator; |
| | | |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public <T> T firstValueAsObject( |
| | | Function<? super ByteString, T, Void> type) |
| | | throws NoSuchElementException |
| | | { |
| | | return type.apply(firstValue(), null); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public <T, P> T firstValueAsObject( |
| | | Function<? super ByteString, T, P> type, P p) |
| | | throws NoSuchElementException |
| | | { |
| | | return type.apply(firstValue(), p); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public String firstValueAsString() throws NoSuchElementException |
| | | { |
| | | return firstValue().toString(); |