com.atlassian.applinks.spi.application
Class TypeId

java.lang.Object
  extended by com.atlassian.applinks.spi.application.TypeId
All Implemented Interfaces:
java.lang.Comparable<TypeId>

public class TypeId
extends java.lang.Object
implements java.lang.Comparable<TypeId>

Since:
3.0

Constructor Summary
TypeId(java.lang.String id)
           
 
Method Summary
 int compareTo(TypeId o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String get()
           
static TypeId getTypeId(ApplicationType type)
          Convenience method for looking up TypeIds from ApplicationTypes.
static TypeId getTypeId(EntityType type)
          Convenience method for looking up TypeIds from EntityTypes.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeId

public TypeId(java.lang.String id)
Method Detail

get

public java.lang.String get()

getTypeId

public static TypeId getTypeId(EntityType type)
Convenience method for looking up TypeIds from EntityTypes. The applinks-entity-type descriptor enforces that all registered EntityTypes implement the IdentifiableType interface, so the cast in the delegate method is safe.


getTypeId

public static TypeId getTypeId(ApplicationType type)
Convenience method for looking up TypeIds from ApplicationTypes. The applinks-application-type descriptor enforces that all registered ApplicationTypes implement the IdentifiableType interface, so the cast in the delegate method is safe.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(TypeId o)
Specified by:
compareTo in interface java.lang.Comparable<TypeId>


Copyright © 2011 Atlassian. All Rights Reserved.