Skip to content

Instantly share code, notes, and snippets.

@steklopod
Created August 2, 2020 13:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save steklopod/30b95d5f1cbcdc87bed749855842a0fb to your computer and use it in GitHub Desktop.
Map Struct util class
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