Interface Holder<T>
- All Known Implementing Classes:
Holder.CustomHolder,Holder.IdHolder
public interface Holder<T>
Represents an object that could either be a network ID, or a custom-defined one.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Method Summary
-
Method Details
-
ofId
-
ofCustom
-
isId
boolean isId() -
id
int id() -
isCustom
boolean isCustom() -
custom
T custom() -
ifId
-
ifCustom
-