converetd to kotlin
This commit is contained in:
parent
57d0b2a14e
commit
da44f7c339
|
@ -1,35 +0,0 @@
|
||||||
package dorkbox.network.connection.connectionType;
|
|
||||||
|
|
||||||
import dorkbox.network.handshake.UpgradeType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used in {@link IpConnectionTypeRule} to decide what kind of connection a matching IP Address should have.
|
|
||||||
*/
|
|
||||||
public enum ConnectionProperties {
|
|
||||||
/**
|
|
||||||
* No compression, no encryption
|
|
||||||
*/
|
|
||||||
NOTHING(UpgradeType.NONE),
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only compression
|
|
||||||
*/
|
|
||||||
COMPRESS(UpgradeType.COMPRESS),
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Compression + encryption
|
|
||||||
*/
|
|
||||||
COMPRESS_AND_ENCRYPT(UpgradeType.ENCRYPT)
|
|
||||||
;
|
|
||||||
|
|
||||||
private final byte type;
|
|
||||||
|
|
||||||
ConnectionProperties(byte type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public
|
|
||||||
byte getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user