converetd to kotlin

This commit is contained in:
nathan 2020-08-17 16:49:00 +02:00
parent 57d0b2a14e
commit da44f7c339

View File

@ -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;
}
}