com.github.fge.jsonschema.core.tree.key
Class AnonymousSchemaKey

java.lang.Object
  extended by com.github.fge.jsonschema.core.tree.key.SchemaKey
      extended by com.github.fge.jsonschema.core.tree.key.AnonymousSchemaKey

public final class AnonymousSchemaKey
extends SchemaKey

A unique schem key for schemas loaded anonymously


Field Summary
 
Fields inherited from class com.github.fge.jsonschema.core.tree.key.SchemaKey
loadingRef
 
Method Summary
 boolean equals(Object obj)
           
 long getId()
          Get the identifier, as a long, for this schema -- DO NOT USE DIRECTLY
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.github.fge.jsonschema.core.tree.key.SchemaKey
anonymousKey, forJsonRef, getLoadingRef
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public long getId()
Description copied from class: SchemaKey
Get the identifier, as a long, for this schema -- DO NOT USE DIRECTLY

Important: this method is here only for backwards compatibility reasons (see SchemaTree.getId()); you should not be using it as a reliable identifier, since for all non anonymous schema keys (ie, instances of JsonRefSchemaKey), this will return 0L.

Specified by:
getId in class SchemaKey
Returns:
see description

hashCode

public int hashCode()
Specified by:
hashCode in class SchemaKey

equals

public boolean equals(@Nullable
                      Object obj)
Specified by:
equals in class SchemaKey

toString

@Nonnull
public String toString()
Specified by:
toString in class SchemaKey