本文整理匯總了Java中org.apache.commons.lang3.EnumUtils.getEnumList方法的典型用法代碼示例。如果您正苦於以下問題:Java EnumUtils.getEnumList方法的具體用法?Java EnumUtils.getEnumList怎麽用?Java EnumUtils.getEnumList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.commons.lang3.EnumUtils
的用法示例。
在下文中一共展示了EnumUtils.getEnumList方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initGui
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
@Override
public void initGui() {
buttonList.add(new GuiButton(0, width - 105, height - 25, 100, 20, "Apply and continue"));
super.initGui();
namefield = new GuiTextField(1, fontRendererObj, 55, 110, 100, 10);
surnamefield = new GuiTextField(2, fontRendererObj, 55, 125, 100, 10);
namefield.setCanLoseFocus(true);
surnamefield.setCanLoseFocus(true);
genderGroup = new GuiRadioGroup(surnamefield.xPosition, surnamefield.yPosition + surnamefield.height + 5);
jobMenu = new GuiDropdownMenu(5, genderGroup.yPos + 20, surnamefield.getWidth() + 10, "Job: ");
genderGroup.buttonList.clear();
genderGroup.horizontal = true;
genderGroup.addButton(new GuiRadiobutton(0, 0, 0, 10, 10, "Male"));
genderGroup.addButton(new GuiRadiobutton(1, 0, 0, 10, 10, "Female"));
genderGroup.singleChoice = true;
jobMenu.setMaxHeight(4);
int enumid = 0;
for (EnumJob job : EnumUtils.getEnumList(EnumJob.class)) {
jobMenu.contents.add(new GuiMenuItem(jobMenu, enumid, job.name()));
enumid++;
}
}
示例2: differencesMandatoryFor
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
@Override
public IHistoryLogSearchQuery differencesMandatoryFor(Set<HistoryEventType> mandatoryDifferencesEventTypes) {
if (!mandatoryDifferencesEventTypes.isEmpty()) {
List<HistoryEventType> allowedWithoutDifferenceEventTypes = EnumUtils.getEnumList(HistoryEventType.class);
allowedWithoutDifferenceEventTypes.removeAll(mandatoryDifferencesEventTypes);
BooleanJunction<?> junction = getDefaultQueryBuilder().bool();
shouldIfNotNull(
junction,
matchOneIfGiven(Bindings.historyLog().eventType(), allowedWithoutDifferenceEventTypes),
matchIfGiven(AbstractHistoryLog.HAS_DIFFERENCES, true)
);
must(junction.createQuery());
}
return this;
}
示例3: newEnumType
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
public static <E extends Enum<E>> GraphQLOutputType newEnumType(Class<E> enumClass) {
GraphQLEnumType.Builder builder = GraphQLEnumType.newEnum()
.name(enumClass.getSimpleName());
for (E e : EnumUtils.getEnumList(enumClass)) {
builder = builder.value(e.name(), e);
}
return builder.build();
}
示例4: queueIds
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
@Override
@Bean
public Collection<? extends IQueueId> queueIds() {
return EnumUtils.getEnumList(BasicApplicationTaskQueueId.class);
}
示例5: queueIds
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
@Override
@Bean
public Collection<? extends IQueueId> queueIds() {
return EnumUtils.getEnumList(ShowcaseTaskQueueId.class);
}
示例6: ShowcaseTaskQueueIdDropDownChoice
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
public ShowcaseTaskQueueIdDropDownChoice(String id, IModel<ShowcaseTaskQueueId> model) {
super(id, model, new ListModel<ShowcaseTaskQueueId>(EnumUtils.getEnumList(ShowcaseTaskQueueId.class)), new ChoiceRenderer<ShowcaseTaskQueueId>());
setNullValid(true);
}
示例7: queueIds
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
@Override
public Collection<? extends IQueueId> queueIds() {
return EnumUtils.getEnumList(TestQueueId.class);
}
示例8: queueIds
import org.apache.commons.lang3.EnumUtils; //導入方法依賴的package包/類
@Override
@Bean
public Collection<? extends IQueueId> queueIds() {
return EnumUtils.getEnumList(MavenArtifactNotifierTaskQueueId.class);
}
開發者ID:openwide-java,項目名稱:artifact-listener,代碼行數:6,代碼來源:MavenArtifactNotifierCoreTaskManagementConfig.java