L - left typeR - right typepublic abstract static class IBeanConverter.AbstractHandle<L,R> extends java.lang.Object implements IBeanConverter<L,R>
IBeanConverterIBeanConverter.AbstractHandle<L,R>| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Class<?> |
leftType
L type
|
protected java.lang.Class<?> |
rightType
R type
|
| 构造器和说明 |
|---|
IBeanConverter.AbstractHandle() |
IBeanConverter.AbstractHandle(java.lang.Class<L> leftClass,
java.lang.Class<R> rightClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
doFromRight(L left,
R right)
copy right TO left, left and right must not be null
|
protected abstract void |
doToRight(L left,
R right)
copy left TO right, left and right must not be null
|
java.util.List<L> |
fromRight(java.util.Collection<R> beans)
return an new list converted from R beans
|
L[] |
fromRight(L[] lefts,
R[] rights)
copy rights TO lefts
|
java.util.List<L> |
fromRight(java.util.List<L> lefts,
java.util.List<R> rights)
copy rights TO lefts
|
java.util.List<L> |
fromRight(java.util.List<R> rights)
return an new list converted from R beans
|
L |
fromRight(L left,
R right)
copy right TO left
|
java.util.Map<L,L> |
fromRight(java.util.Map<R,R> rmap)
return an new map with L key and L value converted from map with R key and R value
|
L |
fromRight(R bean)
return an new instance converted from R bean
|
L[] |
fromRight(R[] rights)
return an new array converted from R beans
|
<V> java.util.Map<L,V> |
fromRightKey(java.util.Map<R,V> rmap)
return an new map with L key converted from map with R key
|
<K> java.util.Map<K,L> |
fromRightValue(java.util.Map<K,R> rmap)
return an new map with L value converted from map with R value
|
protected static <T> T |
newInstance(java.lang.Class<T> clazz) |
protected L |
newInstanceL()
Creates a new L instance by calling constructor with an empty argument list
you must override the method if the L class haven't default constructor. |
protected R |
newInstanceR()
Creates a new R instance by calling constructor with an empty argument list
you must override the method if the R class haven't default constructor. |
java.util.List<R> |
toRight(java.util.Collection<L> beans)
an new list converted from L beans
|
R |
toRight(L bean)
return an new instance converted from L bean
|
R[] |
toRight(L[] lefts)
an new array converted from L beans
|
R[] |
toRight(L[] lefts,
R[] rights)
copy lefts TO rights
|
java.util.List<R> |
toRight(java.util.List<L> lefts)
return an new list converted from L beans
|
java.util.List<R> |
toRight(java.util.List<L> lefts,
java.util.List<R> rights)
copy lefts TO rights
|
R |
toRight(L left,
R right)
copy left TO right
|
java.util.Map<R,R> |
toRight(java.util.Map<L,L> lmap)
an new map with R key and R value converted from map with L key and L value
|
<V> java.util.Map<R,V> |
toRightKey(java.util.Map<L,V> lmap)
return an new map with R key converted from map with L key
|
<K> java.util.Map<K,R> |
toRightValue(java.util.Map<K,L> lmap)
return an new map with R value converted from map with L value
|
protected final java.lang.Class<?> leftType
protected final java.lang.Class<?> rightType
public IBeanConverter.AbstractHandle()
public IBeanConverter.AbstractHandle(java.lang.Class<L> leftClass, java.lang.Class<R> rightClass)
protected abstract void doFromRight(L left, R right)
left - right - protected abstract void doToRight(L left, R right)
left - right - protected L newInstanceL()
protected R newInstanceR()
protected static <T> T newInstance(java.lang.Class<T> clazz)
public L fromRight(L left, R right)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public R toRight(L left, R right)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public L fromRight(R bean)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public R toRight(L bean)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public R[] toRight(L[] lefts, R[] rights)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public L[] fromRight(L[] lefts, R[] rights)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public R[] toRight(L[] lefts)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public L[] fromRight(R[] rights)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public java.util.List<R> toRight(java.util.Collection<L> beans)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public java.util.List<L> fromRight(java.util.Collection<R> beans)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public java.util.List<R> toRight(java.util.List<L> lefts, java.util.List<R> rights)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public java.util.List<L> fromRight(java.util.List<L> lefts, java.util.List<R> rights)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public java.util.List<R> toRight(java.util.List<L> lefts)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public java.util.List<L> fromRight(java.util.List<R> rights)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>public <V> java.util.Map<R,V> toRightKey(java.util.Map<L,V> lmap)
IBeanConvertertoRightKey 在接口中 IBeanConverter<L,R>public <K> java.util.Map<K,R> toRightValue(java.util.Map<K,L> lmap)
IBeanConvertertoRightValue 在接口中 IBeanConverter<L,R>public <V> java.util.Map<L,V> fromRightKey(java.util.Map<R,V> rmap)
IBeanConverterfromRightKey 在接口中 IBeanConverter<L,R>public <K> java.util.Map<K,L> fromRightValue(java.util.Map<K,R> rmap)
IBeanConverterfromRightValue 在接口中 IBeanConverter<L,R>public java.util.Map<R,R> toRight(java.util.Map<L,L> lmap)
IBeanConvertertoRight 在接口中 IBeanConverter<L,R>public java.util.Map<L,L> fromRight(java.util.Map<R,R> rmap)
IBeanConverterfromRight 在接口中 IBeanConverter<L,R>Copyright © 2019. All Rights Reserved.