public class OperationDecoderKey extends OperationKey implements DecoderKey
Modifier and Type | Field and Description |
---|---|
private MediaType |
contentType |
Constructor and Description |
---|
OperationDecoderKey(OperationKey key,
MediaType contentType) |
OperationDecoderKey(String service,
String version,
Enum<?> operation,
MediaType contentType) |
OperationDecoderKey(String service,
String version,
String operation,
MediaType contentType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
MediaType |
getContentType() |
int |
getSimilarity(DecoderKey key)
x = 0 ⇔ equal
x < 0 ⇔ not similar
x > 0 ⇔ similar
y > 0 & x > y ⇔ x more similar than y
|
int |
hashCode() |
String |
toString() |
compareTo, getOperation, getService, getSimilarity, getVersion
private final MediaType contentType
public OperationDecoderKey(String service, String version, String operation, MediaType contentType)
public OperationDecoderKey(String service, String version, Enum<?> operation, MediaType contentType)
public OperationDecoderKey(OperationKey key, MediaType contentType)
public MediaType getContentType()
public String toString()
toString
in interface CodingKey<DecoderKey>
toString
in class OperationKey
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 OperationKey
public boolean equals(Object obj)
equals
in interface CodingKey<DecoderKey>
equals
in class OperationKey
Copyright © 2012-2015 52north.org. All Rights Reserved.