public static Predicate<Location> isZoneOrRegionWhereRegionIdEquals(String region) { return new IsZoneOrRegionWhereRegionIdEquals(region); }
public static Predicate<Location> idEquals(String id) { return new IdEquals(id); }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isRegion()); } catch (NoSuchElementException e) { throw new NoSuchElementException("none to of the locations are scope REGION: " + transform(locations, ToIdAndScope.INSTANCE)); } }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isZone()); } catch (NoSuchElementException e) { throw new NoSuchElementException("none to of the locations are scope ZONE: " + transform(locations, ToIdAndScope.INSTANCE)); } }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isNetwork()); } catch (NoSuchElementException e) { throw new NoSuchElementException( "none of the locations are scope NETWORK: " + transform(locations, ToIdAndScope.INSTANCE)); } }
public static Predicate<Location> isZoneOrRegionWhereRegionIdEquals(String region) { return new IsZoneOrRegionWhereRegionIdEquals(region); }
public static Predicate<Location> idEquals(String id) { return new IdEquals(id); }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isZone()); } catch (NoSuchElementException e) { throw new NoSuchElementException("none to of the locations are scope ZONE: " + transform(locations, ToIdAndScope.INSTANCE)); } }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isNetwork()); } catch (NoSuchElementException e) { throw new NoSuchElementException( "none of the locations are scope NETWORK: " + transform(locations, ToIdAndScope.INSTANCE)); } }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isRegion()); } catch (NoSuchElementException e) { throw new NoSuchElementException("none to of the locations are scope REGION: " + transform(locations, ToIdAndScope.INSTANCE)); } }
public static Predicate<Location> isZoneOrRegionWhereRegionIdEquals(String region) { return new IsZoneOrRegionWhereRegionIdEquals(region); }
public static Predicate<Location> idEquals(String id) { return new IdEquals(id); }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isZone()); } catch (NoSuchElementException e) { throw new NoSuchElementException("none to of the locations are scope ZONE: " + transform(locations, ToIdAndScope.INSTANCE)); } }
@Override public Location get() { Set<? extends Location> locations = locationsSupplier.get(); try { return find(locations, isNetwork()); } catch (NoSuchElementException e) { throw new NoSuchElementException( "none of the locations are scope NETWORK: " + transform(locations, ToIdAndScope.INSTANCE)); } }
public static Predicate<Location> isZoneOrRegionWhereRegionIdEquals(String region) { return new IsZoneOrRegionWhereRegionIdEquals(region); }
public static Predicate<Location> idEquals(String id) { return new IdEquals(id); }
public static Predicate<Location> isZoneOrRegionWhereRegionIdEquals(String region) { return new IsZoneOrRegionWhereRegionIdEquals(region); }
public static Predicate<Location> idEquals(String id) { return new IdEquals(id); }
public static Predicate<Location> isZoneOrRegionWhereRegionIdEquals(String region) { return new IsZoneOrRegionWhereRegionIdEquals(region); }
public static Predicate<Location> idEquals(String id) { return new IdEquals(id); }