@Test public void testFindUniqueMachineLocation() throws Exception { assertEquals(Machines.findUniqueMachineLocation(ImmutableList.of(sshMachine, otherLoc)).get(), sshMachine); assertFalse(Machines.findUniqueMachineLocation(ImmutableList.of(otherLoc)).isPresent()); }
public static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations) { return findUniqueMachineLocation(locations, MachineLocation.class); }
Machines { public static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations) { return findUniqueMachineLocation(locations, MachineLocation.class); } }
Machines { public static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations) { return findUniqueMachineLocation(locations, MachineLocation.class); }  }
Machines { public static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations) { return findUniqueMachineLocation(locations, MachineLocation.class); }  static Maybe<String> getSubnetHostname(Location where); static Maybe<String> getSubnetIp(Location where); @SuppressWarnings("unchecked") static Maybe<T> findUniqueElement(Iterable<?> items, Class<T> type); @Deprecated static Maybe<SshMachineLocation> findUniqueSshMachineLocation(Iterable<? extends Location> locations); static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations); static Maybe<T> findUniqueMachineLocation(Iterable<? extends Location> locations, Class<T> clazz); static Maybe<String> findSubnetHostname(Iterable<? extends Location> ll); static Maybe<String> findSubnetHostname(Entity entity); static Maybe<String> findSubnetOrPublicHostname(Entity entity); static Maybe<String> findSubnetOrPrivateIp(Entity entity); static Maybe<String> findSubnetIp(Entity entity); static Maybe<String> findSubnetIp(Iterable<? extends Location> ll); static boolean warnIfLocalhost(Collection<? extends Location> locations, String message); }
Machines { public static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations) { return findUniqueMachineLocation(locations, MachineLocation.class); }  static Maybe<String> getSubnetHostname(Location where); static Maybe<String> getSubnetIp(Location where); @SuppressWarnings("unchecked") static Maybe<T> findUniqueElement(Iterable<?> items, Class<T> type); @Deprecated static Maybe<SshMachineLocation> findUniqueSshMachineLocation(Iterable<? extends Location> locations); static Maybe<MachineLocation> findUniqueMachineLocation(Iterable<? extends Location> locations); static Maybe<T> findUniqueMachineLocation(Iterable<? extends Location> locations, Class<T> clazz); static Maybe<String> findSubnetHostname(Iterable<? extends Location> ll); static Maybe<String> findSubnetHostname(Entity entity); static Maybe<String> findSubnetOrPublicHostname(Entity entity); static Maybe<String> findSubnetOrPrivateIp(Entity entity); static Maybe<String> findSubnetIp(Entity entity); static Maybe<String> findSubnetIp(Iterable<? extends Location> ll); static boolean warnIfLocalhost(Collection<? extends Location> locations, String message);  }