/** * Return true, if the resource exists. * * @param context The request context * @param name The qualified name of the resource to get * @return Return true, if the resource exists. * @throws UnsupportedOperationException If the connector doesn't implement this method */ @SuppressFBWarnings default boolean exists(final ConnectorRequestContext context, final QualifiedName name) { return get(context, name) != null; }
/** * Return true, if the resource exists. * * @param context The request context * @param name The qualified name of the resource to get * @return Return true, if the resource exists. * @throws UnsupportedOperationException If the connector doesn't implement this method */ @SuppressFBWarnings default boolean exists(final ConnectorRequestContext context, final QualifiedName name) { return get(context, name) != null; }