|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.model.internal.FeatureBag.Builder
public static final class FeatureBag.Builder
Feature bag builder.
| Constructor Summary | |
|---|---|
FeatureBag.Builder()
Creates a new FeatureBag instance. |
|
FeatureBag.Builder(FeatureBag.Builder other)
Copy constructor. |
|
FeatureBag.Builder(FeatureBag other)
Copy constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(Class<? extends Feature> featureClass)
Adds a feature class to the list of features. |
boolean |
add(Feature feature)
Adds a feature instance to the list of features. |
FeatureBag |
build()
Build a feature bag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureBag.Builder()
FeatureBag instance.
public FeatureBag.Builder(FeatureBag.Builder other)
other - instance of FeatureBag.Builder to copy data from.public FeatureBag.Builder(FeatureBag other)
other - instance of FeatureBag.Builder to copy data from.| Method Detail |
|---|
public boolean add(Class<? extends Feature> featureClass)
featureClass - feature class to be enabled.
true if the feature has been successfully added to the list of features,
false if a feature (class/instance) of this class is already present in this bag.public boolean add(Feature feature)
feature - feature instance to be enabled.
true if the feature class has been successfully added to the list of features,
false if a feature instance is already present in this bag.public FeatureBag build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||