net.sf.mmm.util.reflect.impl
Class ParameterizedTypeImpl

java.lang.Object
  extended by net.sf.mmm.util.reflect.impl.ParameterizedTypeImpl
All Implemented Interfaces:
ParameterizedType, Type

public class ParameterizedTypeImpl
extends Object
implements ParameterizedType

This is an implementation of the ParameterizedType interface.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
ReflectionUtilImpl.toType(String)

Field Summary
private  Type[] actualTypeArguments
           
private  Type ownerType
           
private  Class<?> rawType
           
 
Constructor Summary
ParameterizedTypeImpl(Class<?> rawType, Type[] typeArguments, Type ownerType)
          The constructor.
 
Method Summary
 boolean equals(Object other)
          
 Type[] getActualTypeArguments()
          
 Type getOwnerType()
          
 Type getRawType()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

rawType

private final Class<?> rawType
See Also:
getRawType()

ownerType

private final Type ownerType
See Also:
getOwnerType()

actualTypeArguments

private final Type[] actualTypeArguments
See Also:
getActualTypeArguments()
Constructor Detail

ParameterizedTypeImpl

public ParameterizedTypeImpl(Class<?> rawType,
                             Type[] typeArguments,
                             Type ownerType)
The constructor.

Parameters:
rawType - is the raw type.
typeArguments - are the getActualTypeArguments().
ownerType - is the owner type (may be null).
Method Detail

getActualTypeArguments

public Type[] getActualTypeArguments()

Specified by:
getActualTypeArguments in interface ParameterizedType

getOwnerType

public Type getOwnerType()

Specified by:
getOwnerType in interface ParameterizedType

getRawType

public Type getRawType()

Specified by:
getRawType in interface ParameterizedType

equals

public boolean equals(Object other)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2001-2010 mmm-Team. All Rights Reserved.