Skip to content

A small library for working with the Java 5 type system.

License

Notifications You must be signed in to change notification settings

markhobson/jtype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JType

Java 5 introduced a richer type system for generics with Type and its various subtypes, but lacks any easy way to perform common operations on these types. JType aims to fill this gap.

Features

  • A factory to easily create implementations of the various type interfaces.

  • Methods to compare and manipulate type instances, such as checking whether a type is a subtype of another.

  • A generic type literal that provides an equivalent of class literals for types.

Getting started

To start using JType in a Maven project, add the following dependency to the POM:

<project>
	...
	<dependencies>
		<dependency>
			<groupId>com.googlecode.jtype</groupId>
			<artifactId>jtype</artifactId>
			<version>0.1.3</version>
		</dependency>
	</dependencies>
	...
</project>

JType is deployed to Sonatype's OSS Repository and synced with the Maven Central Repository, so no repository definitions are required.

Links

License

Build Status

About

A small library for working with the Java 5 type system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages