org.jclouds.ultradns.ws.domain
Class IdAndName

java.lang.Object
  extended by org.jclouds.ultradns.ws.domain.IdAndName

public final class IdAndName
extends Object


Method Summary
static IdAndName create(String id, String name)
           
 boolean equals(Object obj)
           
 String getId()
          The id of the resource.
 String getName()
          The name of the resource.
 int hashCode()
           
static com.google.common.base.Predicate<IdAndName> nameEqualTo(String name)
          convenience predicate as typically the user is unaware of the system generated id of a resource
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static IdAndName create(String id,
                               String name)

getId

public String getId()
The id of the resource. ex AAAAAAAAAAAAAAAA


getName

public String getName()
The name of the resource. ex jclouds


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

nameEqualTo

public static com.google.common.base.Predicate<IdAndName> nameEqualTo(String name)
convenience predicate as typically the user is unaware of the system generated id of a resource

Parameters:
name - see getName()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.