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