Created
August 2, 2020 13:08
-
-
Save steklopod/30b95d5f1cbcdc87bed749855842a0fb to your computer and use it in GitHub Desktop.
Map Struct util class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import java.util.UUID; | |
public interface AbstractMapper<T, R> { | |
R map(T source); | |
List<R> map(List<T> sourceList); | |
default UUID stringToUUID(String string) { | |
return UUID.fromString(string); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment