@Immutable public final class CompressionAlgorithm extends java.lang.Object implements net.minidev.json.JSONAware
zip
header parameter in
JSON Web Encryption (JWE) objects. This class is immutable.
Includes a constant for the standard DEFLATE compression algorithm:
Additional compression algorithm names can be defined using the constructor.
Modifier and Type | Field and Description |
---|---|
static CompressionAlgorithm |
DEF
DEFLATE Compressed Data Format Specification version 1.3, as
described in RFC 1951.
|
Constructor and Description |
---|
CompressionAlgorithm(java.lang.String name)
Creates a new compression algorithm with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals() . |
java.lang.String |
getName()
Gets the name of this compression algorithm.
|
int |
hashCode()
Overrides
Object.hashCode() . |
java.lang.String |
toJSONString()
Returns the JSON string representation of this compression algorithm.
|
java.lang.String |
toString()
Returns the string representation of this compression algorithm.
|
public static final CompressionAlgorithm DEF
public CompressionAlgorithm(java.lang.String name)
name
- The compression algorithm name. Must not be null
.public java.lang.String getName()
public int hashCode()
Object.hashCode()
.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
Object.equals()
.equals
in class java.lang.Object
object
- The object to compare to.true
if the objects have the same value, otherwise
false
.public java.lang.String toString()
toString
in class java.lang.Object
getName()
public java.lang.String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
Copyright © 2013 NimbusDS. All Rights Reserved.