Interface Wrapper<T>
-
- Type Parameters:
T
- the type of the object to wrap
- All Known Implementing Classes:
BasicWrapper
,ConfigProviderWrapper
,ValidatorWrapper
public interface Wrapper<T>
Interface for wrapping / unwrapping objects- Since:
- 0.7.4.8
- Author:
- Matteo a.k.a. Fugerit
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
unwrap()
Recursively unwrap the wrapped object until it is not instance of Wrapper anymore.T
unwrapModel()
Unwrap the underlying objectvoid
wrapModel(T wrapped)
Wraps the give objects
-
-
-
Method Detail
-
unwrapModel
T unwrapModel()
Unwrap the underlying object- Returns:
- the wrapped object
-
wrapModel
void wrapModel(T wrapped)
Wraps the give objects- Parameters:
wrapped
- objects to wrap
-
unwrap
T unwrap()
Recursively unwrap the wrapped object until it is not instance of Wrapper anymore.- Returns:
- the underlying object
-
-