public class SwapAnnotation extends Object implements Swap
Swap
annotation.
Constructor and Description |
---|
SwapAnnotation(Class<?> on)
Constructor.
|
SwapAnnotation(Field on)
Constructor.
|
SwapAnnotation(Method on)
Constructor.
|
SwapAnnotation(String on)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType() |
Class<?> |
impl() |
SwapAnnotation |
impl(Class<?> value)
Sets the
|
String[] |
mediaTypes() |
SwapAnnotation |
mediaTypes(String... value)
Sets the
|
String |
on() |
SwapAnnotation |
on(Class<?> value)
Sets the
|
SwapAnnotation |
on(Field value)
Sets the
|
SwapAnnotation |
on(Method value)
Sets the
|
SwapAnnotation |
on(String value)
Sets the
|
String |
template() |
SwapAnnotation |
template(String value)
Sets the
|
Class<?> |
value() |
SwapAnnotation |
value(Class<?> value)
Sets the
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, toString
public SwapAnnotation(String on)
on
- The initial value for the Swap.on()
public SwapAnnotation(Class<?> on)
on
- The initial value for the Swap.on()
public SwapAnnotation(Method on)
on
- The initial value for the Swap.on()
public SwapAnnotation(Field on)
on
- The initial value for the Swap.on()
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public SwapAnnotation impl(Class<?> value)
value
- The new value for this property.public String[] mediaTypes()
public SwapAnnotation mediaTypes(String... value)
value
- The new value for this property.public SwapAnnotation on(String value)
value
- The new value for this property.public SwapAnnotation on(Class<?> value)
value
- The new value for this property.public SwapAnnotation on(Method value)
value
- The new value for this property.public SwapAnnotation on(Field value)
value
- The new value for this property.public SwapAnnotation template(String value)
value
- The new value for this property.public SwapAnnotation value(Class<?> value)
value
- The new value for this property.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.