|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- The type of the keyV
- The type of things in the viewS
- The type of things in the storeT
- The type of transform@Experimental public interface View<K,V,S,T>
The interface for defining a view.
This interface provides a translation from the view's type to the target
store's type and vice versa. If one direction is not supported, the
unimplemented method should throw an
UnsupportedViewOperationException
.
Method Summary | |
---|---|
V |
storeToView(Store<K,S,T> targetStore,
K k,
S s,
T t)
Translate from the store type to the view type |
S |
viewToStore(Store<K,S,T> targetStore,
K k,
V v,
T t)
Translate from the view type to the store type |
Method Detail |
---|
V storeToView(Store<K,S,T> targetStore, K k, S s, T t) throws UnsupportedViewOperationException
targetStore
- The store behind the viewk
- The keys
- The value for the storet
- the transforms to be applied on s
UnsupportedViewOperationException
- If this direction of
translation is not allowedS viewToStore(Store<K,S,T> targetStore, K k, V v, T t) throws UnsupportedViewOperationException
targetStore
- The store behind the viewk
- The keyv
- The valuet
- the transforms to be applied on v
UnsupportedViewOperationException
- If this direction of
translation is not allowed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |