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 java.lang.Object implements StatusEntity<T>
-
-
Constructor Summary
Constructors Constructor Description StatusEntityWrapper(java.util.function.Supplier<T> entitySupplier, OnmsSeverity status)
StatusEntityWrapper(T entity, OnmsSeverity status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getEntity()
OnmsSeverity
getStatus()
-
-
-
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>
-
-