Top Description Fields Constructors Methods
org.freedesktop.dbus.types

public Class DBusMapType

extends Object
implements ParameterizedType
Class Inheritance
All Implemented Interfaces
java.lang.reflect.ParameterizedType, java.lang.reflect.Type
Imports
java.lang.reflect.ParameterizedType, .Type, java.util.Map

The type of a map. Should be used whenever you need a Type variable for a map.

Field Summary

Modifier and TypeField and Description
private final Type
k

private final Type
v

Constructor Summary

AccessConstructor and Description
public
DBusMapType(Type
The type of the keys.
_k
,
Type
The type of the values.
_v
)

Create a map type.

Method Summary

Modifier and TypeMethod and Description
public Type[]
getActualTypeArguments()

Implements java.lang.reflect.ParameterizedType.getActualTypeArguments.

Returns an array of Type objects representing the actual type arguments to this type.

public Type
getOwnerType()

Implements java.lang.reflect.ParameterizedType.getOwnerType.

Returns a Type object representing the type that this type is a member of.

public Type
getRawType()

Implements java.lang.reflect.ParameterizedType.getRawType.

Returns the Type object representing the class or interface that declared this type.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

kback to summary
private final Type k
vback to summary
private final Type v

Constructor Detail

DBusMapTypeback to summary
public DBusMapType(Type _k, Type _v)

Create a map type.

Parameters
_k:Type

The type of the keys.

_v:Type

The type of the values.

Method Detail

getActualTypeArgumentsback to summary
public Type[] getActualTypeArguments()

Implements java.lang.reflect.ParameterizedType.getActualTypeArguments.

Doc from java.lang.reflect.ParameterizedType.getActualTypeArguments.

Returns an array of Type objects representing the actual type arguments to this type.

Note that in some cases, the returned array be empty. This can occur if this type represents a non-parameterized type nested within a parameterized type.

Returns:Type[]

an array of Type objects representing the actual type arguments to this type

Annotations
@Override
getOwnerTypeback to summary
public Type getOwnerType()

Implements java.lang.reflect.ParameterizedType.getOwnerType.

Doc from java.lang.reflect.ParameterizedType.getOwnerType.

Returns a Type object representing the type that this type is a member of. For example, if this type is O<T>.I<S>, return a representation of O<T>.

If this type is a top-level type, null is returned.

Returns:Type

a Type object representing the type that this type is a member of. If this type is a top-level type, null is returned

Annotations
@Override
getRawTypeback to summary
public Type getRawType()

Implements java.lang.reflect.ParameterizedType.getRawType.

Doc from java.lang.reflect.ParameterizedType.getRawType.

Returns the Type object representing the class or interface that declared this type.

Returns:Type

the Type object representing the class or interface that declared this type

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override