Class AFTIPCSocketAddress.Scope
java.lang.Object
org.newsclub.net.unix.NamedInteger
org.newsclub.net.unix.AFTIPCSocketAddress.Scope
- All Implemented Interfaces:
Serializable
- Enclosing class:
AFTIPCSocketAddress
The TIPC visibility scope.
- Author:
- Christian Kohlschütter
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class NamedInteger
NamedInteger.HasOfValue, NamedInteger.UndefinedValueConstructor<T>Modifier and TypeClassDescriptionstatic interfaceMarks a subclass that provides a method"public static T ofValue(int v)"that allows casting an integer to this type via reflection.protected static interfaceConstructor for "undefined" values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AFTIPCSocketAddress.ScopeCluster-wide scope.static final AFTIPCSocketAddress.ScopeNode-only scope.static final AFTIPCSocketAddress.ScopeScope not specified (for example, when using socket addresses). -
Method Summary
Modifier and TypeMethodDescriptionstatic AFTIPCSocketAddress.ScopeofValue(int v) Returns aAFTIPCSocketAddress.Scopeinstance given an integer value.Methods inherited from class NamedInteger
equals, hashCode, init, name, ofValue, toString, valueModifier and TypeMethodDescriptionfinal booleanfinal inthashCode()protected static final <T extends NamedInteger>
T[]init(T[] values) Ensures that theVALUESarray is configured correctly.final Stringname()Returns the name.protected static final <T extends NamedInteger>
TofValue(T[] values, NamedInteger.UndefinedValueConstructor<T> constr, int v) Returns an instance given an integer value.final StringtoString()final intvalue()Returns the value.
-
Field Details
-
SCOPE_CLUSTER
Cluster-wide scope. -
SCOPE_NODE
Node-only scope. -
SCOPE_NOT_SPECIFIED
Scope not specified (for example, when using socket addresses).
-
-
Method Details
-
ofValue
Returns aAFTIPCSocketAddress.Scopeinstance given an integer value.- Parameters:
v- The scope value.- Returns:
- The
AFTIPCSocketAddress.Scopeinstance.
-