Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

thegedge/jype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jype

Jype is a library for manually describing Java types in a robust manner. java.lang.Class is sufficient for describing a simple, non-generic type. Once we start using generics, type erasure prevents us from easily understanding a type at runtime.

Enter Jype. If manually describing a type is within the constraints of your project, Jype is there to help:

// String
TypeDescriptor simpleType = new SimpleType(String.class);

// Map<String, Integer>
TypeDescriptor genericType = new GenericType(Map.class, String.class, Integer.class);

// List<List<String>>
TypeDescriptor genericType = new GenericType(List.class, new GenericType(List.class, String.class));

License

Distributed under the MIT license

About

Describe types in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages