接口 Channel.VersionTest
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
嵌套类概要
嵌套类 -
字段概要
字段 -
方法概要
修饰符和类型方法说明boolean
accepts
(Channel.VersionTest.Status status, int version) Tests is the specified version is compatible with this channel.default Channel.VersionTest
and
(Channel.VersionTest other) Returns a composed instance that represents a short-circuiting logical AND of this instance and another.static Channel.VersionTest
exact
(int version) default Channel.VersionTest
negate()
Returns a instance that represents the logical negation of this instance.default Channel.VersionTest
or
(Channel.VersionTest other) Returns a composed instance that represents a short-circuiting logical OR of this instance and another.
-
字段详细资料
-
ACCEPT_MISSING
-
ACCEPT_VANILLA
-
-
方法详细资料
-
exact
-
accepts
Tests is the specified version is compatible with this channel. This determines if a we can communicate with a remote end. The status parameter specifies wither or not the remote knows about out channel or not. If the value isMISSING
orVANILLA
then the version parameter is meaningless. If the status is引用无效
PRESSENT
- 返回:
- true if we should allow the connection
-
negate
Returns a instance that represents the logical negation of this instance. -
and
Returns a composed instance that represents a short-circuiting logical AND of this instance and another. When evaluating the composed instance, if this instance isfalse
, then theother
instance is not evaluated. -
or
Returns a composed instance that represents a short-circuiting logical OR of this instance and another. When evaluating the composed instance, if this instance istrue
, then theother
instance is not evaluated.
-