org.omnaest.utils.structure.element.converter
Class ElementBidirectionalConverterWeakReference<E>
java.lang.Object
org.omnaest.utils.structure.element.converter.ElementBidirectionalConverterWeakReference<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Serializable, ElementBidirectionalConverter<WeakReference<E>,E>, ElementBidirectionalConverterSerializable<WeakReference<E>,E>, ElementConverter<WeakReference<E>,E>
public class ElementBidirectionalConverterWeakReference<E>
- extends Object
- implements ElementBidirectionalConverterSerializable<WeakReference<E>,E>
ElementBidirectionalConverter which encloses a given element into a WeakReference
- Author:
- Omnaest
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementBidirectionalConverterWeakReference
public ElementBidirectionalConverterWeakReference()
convert
public E convert(WeakReference<E> element)
- Description copied from interface:
ElementConverter
- Transforms a single element from one type into another.
- Specified by:
convert in interface ElementConverter<WeakReference<E>,E>
- Returns:
- converted element
convertBackwards
public WeakReference<E> convertBackwards(E element)
- Description copied from interface:
ElementBidirectionalConverter
- Converts an element in backwards way
- Specified by:
convertBackwards in interface ElementBidirectionalConverter<WeakReference<E>,E>
- Returns:
Copyright © 2013. All Rights Reserved.