public class JsonDecoderKey extends Object implements DecoderKey
Constructor and Description |
---|
JsonDecoderKey(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getSimilarity(DecoderKey key)
x = 0 ⇔ equal
x < 0 ⇔ not similar
x > 0 ⇔ similar
y > 0 & x > y ⇔ x more similar than y
|
Class<?> |
getType() |
int |
hashCode() |
String |
toString() |
private final Class<?> type
public JsonDecoderKey(Class<?> type)
public Class<?> getType()
public String toString()
toString
in interface CodingKey<DecoderKey>
toString
in class Object
public int getSimilarity(DecoderKey key)
Similar
x = 0 ⇔ equal x < 0 ⇔ not similar x > 0 ⇔ similar y > 0 & x > y ⇔ x more similar than y
getSimilarity
in interface CodingKey<DecoderKey>
getSimilarity
in interface Similar<DecoderKey>
public int hashCode()
hashCode
in interface CodingKey<DecoderKey>
hashCode
in class Object
Copyright © 2012-2015 52north.org. All Rights Reserved.