本文整理汇总了Java中ch.njol.util.coll.CollectionUtils.array方法的典型用法代码示例。如果您正苦于以下问题:Java CollectionUtils.array方法的具体用法?Java CollectionUtils.array怎么用?Java CollectionUtils.array使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ch.njol.util.coll.CollectionUtils
的用法示例。
在下文中一共展示了CollectionUtils.array方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode == Changer.ChangeMode.DELETE || mode == Changer.ChangeMode.RESET) {
return CollectionUtils.array(Pattern.class);
} else if (mode == Changer.ChangeMode.ADD || mode == Changer.ChangeMode.SET) {
return CollectionUtils.array(Pattern[].class);
}
return null;
}
示例2: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode == Changer.ChangeMode.DELETE || mode == Changer.ChangeMode.RESET) {
return CollectionUtils.array(Pattern.class);
} else if (mode == Changer.ChangeMode.ADD || mode == Changer.ChangeMode.SET) {
return CollectionUtils.array(Pattern[].class);
} else {
return null;
}
}
示例3: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
return (mode == Changer.ChangeMode.SET || mode == Changer.ChangeMode.RESET)
? CollectionUtils.array(Color.class)
: null;
}
示例4: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode != Changer.ChangeMode.REMOVE && mode != Changer.ChangeMode.REMOVE_ALL
&& mode != Changer.ChangeMode.ADD) {
return CollectionUtils.array(PotionEffectType.class);
}
return null;
}
示例5: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode != Changer.ChangeMode.REMOVE && mode != Changer.ChangeMode.REMOVE_ALL) {
return CollectionUtils.array(PotionEffect[].class);
} else {
return CollectionUtils.array(PotionEffectType[].class);
}
}
示例6: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode == Changer.ChangeMode.REMOVE) {
return CollectionUtils.array(PotionEffectType.class);
} else if (mode != Changer.ChangeMode.RESET) {
return CollectionUtils.array(PotionEffect[].class);
}
return null;
}
示例7: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode != Changer.ChangeMode.REMOVE_ALL && mode != Changer.ChangeMode.RESET
&& mode != Changer.ChangeMode.DELETE) {
return CollectionUtils.array(Number.class);
}
return null;
}
示例8: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Nullable
@Override
public Class<?>[] acceptChange(Changer.ChangeMode mode) {
if (mode != Changer.ChangeMode.REMOVE_ALL && mode != Changer.ChangeMode.RESET
&& mode != Changer.ChangeMode.DELETE) {
return CollectionUtils.array(Timespan.class);
}
return null;
}
示例9: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Override
public Class<?>[] acceptChange(final ChangeMode mode) {
if (mode == ChangeMode.SET || mode == ChangeMode.DELETE || mode == ChangeMode.RESET) {
return CollectionUtils.array(String.class);
}
return null;
}
示例10: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public Class<?>[] acceptChange(final Changer.ChangeMode mode) {
if (mode == ChangeMode.SET) {
return CollectionUtils.array(ItemType.class);
}
return null;
}
示例11: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Override
public Class<?>[] acceptChange(final Changer.ChangeMode mode) {
if (mode == ChangeMode.SET || mode == ChangeMode.RESET || mode == ChangeMode.ADD || mode == ChangeMode.REMOVE) {
return CollectionUtils.array(Number.class);
}
return null;
}
示例12: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Override
public Class<?>[] acceptChange(final Changer.ChangeMode mode) {
if (mode == ChangeMode.SET || mode == ChangeMode.ADD || mode == ChangeMode.REMOVE) {
return CollectionUtils.array(Number.class);
}
return null;
}
示例13: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Override
public Class<?>[] acceptChange(final Changer.ChangeMode mode) {
if (mode == ChangeMode.SET) {
return CollectionUtils.array(ItemStack.class);
}
return null;
}
示例14: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@Override
public Class<?>[] acceptChange(final Changer.ChangeMode mode) {
if (mode == ChangeMode.SET) {
return CollectionUtils.array(Boolean.class);
}
return null;
}
示例15: acceptChange
import ch.njol.util.coll.CollectionUtils; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
@Nullable
public Class<?>[] acceptChange(final ChangeMode mode) {
if (mode == ChangeMode.DELETE || mode == ChangeMode.SET)
return CollectionUtils.array(WeatherType.class);
return null;
}