@Override public String apply(ApiMetadata input) { return input.getId(); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> viewableAs(TypeToken<? extends View> type) { return filter(all(), ApiPredicates.viewableAs(type)); }
/** * @see org.jclouds.apis.Apis#withId */ protected ApiMetadata createApiMetadata() { try { return Apis.withId(provider); } catch (NoSuchElementException e) { return null; } }
@Override public Builder toBuilder() { return Builder.class.cast(builder().fromApiMetadata(this)); }
@Override public Builder toBuilder() { return Builder.class.cast(builder().fromApiMetadata(this)); }
@Override public JcloudsTestComputeApiMetadata build() { return new JcloudsTestComputeApiMetadata(this); }
@Override public JcloudsTestBlobStoreApiMetadata build() { return new JcloudsTestBlobStoreApiMetadata(this); }
@Override public JcloudsTestYetAnotherComputeApiMetadata build() { return new JcloudsTestYetAnotherComputeApiMetadata(this); }
public JcloudsTestComputeApiMetadata() { super(builder()); }
public JcloudsTestYetAnotherComputeApiMetadata() { super(builder()); }
@Override public String apply(ApiMetadata input) { return input.getId(); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> viewableAs(TypeToken<? extends View> type) { return filter(all(), ApiPredicates.viewableAs(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * @see org.jclouds.apis.Apis#withId */ protected ApiMetadata createApiMetadata() { try { return Apis.withId(provider); } catch (NoSuchElementException e) { return null; } }
@Override public String apply(ApiMetadata input) { return input.getId(); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> viewableAs(TypeToken<? extends View> type) { return filter(all(), ApiPredicates.viewableAs(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> viewableAs(TypeToken<? extends View> type) { return filter(all(), ApiPredicates.viewableAs(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }