Package org.opennms.features.status.api
Class StatusEntityWrapper<T>
- java.lang.Object
-
- org.opennms.features.status.api.StatusEntityWrapper<T>
-
- All Implemented Interfaces:
StatusEntity<T>
public class StatusEntityWrapper<T> extends Object implements StatusEntity<T>
-
-
Constructor Summary
Constructors Constructor Description StatusEntityWrapper(java.util.function.Supplier<T> entitySupplier, OnmsSeverity status)
StatusEntityWrapper(T entity, OnmsSeverity status)
-
-
-
Constructor Detail
-
StatusEntityWrapper
public StatusEntityWrapper(java.util.function.Supplier<T> entitySupplier, OnmsSeverity status)
-
StatusEntityWrapper
public StatusEntityWrapper(T entity, OnmsSeverity status)
-
-
Method Detail
-
getStatus
public OnmsSeverity getStatus()
- Specified by:
getStatus
in interfaceStatusEntity<T>
-
getEntity
public T getEntity()
- Specified by:
getEntity
in interfaceStatusEntity<T>
-
-