aerogear-controller 1.0.2

org.jboss.aerogear.controller.router.parameter
Class ConstantParameter<T>

java.lang.Object
  extended by org.jboss.aerogear.controller.router.parameter.Parameter<T>
      extended by org.jboss.aerogear.controller.router.parameter.ConstantParameter<T>

public class ConstantParameter<T>
extends Parameter<T>

A constant parameter is specified directly to an endpoint method (not using that param("id") method that is).

A ConstantParameter only has a type and a value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.aerogear.controller.router.parameter.Parameter
Parameter.Type
 
Field Summary
private  T value
           
 
Constructor Summary
ConstantParameter(T value, Class<T> type)
           
 
Method Summary
 T getValue()
           
 String toString()
           
 
Methods inherited from class org.jboss.aerogear.controller.router.parameter.Parameter
constant, equals, getParameterType, getType, hashCode, param, param, param, replacementParam
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private final T value
Constructor Detail

ConstantParameter

public ConstantParameter(T value,
                         Class<T> type)
Method Detail

getValue

public T getValue()

toString

public String toString()
Overrides:
toString in class Parameter<T>

aerogear-controller 1.0.2

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.