Uses of Enum Class
org.aoju.bus.core.lang.Fields.Type
Packages that use Fields.Type
Package
Description
日期封装,日期的核心为DateTime类
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of Fields.Type in org.aoju.bus.core.date
Methods in org.aoju.bus.core.date with parameters of type Fields.TypeModifier and TypeMethodDescriptionstatic CalendarAlmanac.ceiling(Calendar calendar, Fields.Type type) 修改日期为某个时间字段结束时间static DateTimeAlmanac.ceiling(Date date, Fields.Type type) 修改日期为某个时间字段结束时间intDateTime.getField(Fields.Type field) 获得日期的某个部分 例如获得年的部分,则使用 getField(Calendar.YEAR)static DateTimeAlmanac.offset(Date date, Fields.Type type, int offset) 获取指定日期偏移指定时间后的时间DateTime.offset(Fields.Type type, int offset) 调整日期和时间 如果此对象为可变对象,返回自身,否则返回新对象,设置是否可变对象见DateTime.setMutable(boolean)DateTime.offsetNew(Fields.Type type, int offset) 调整日期和时间 返回调整后的新DateTime,不影响原对象static CalendarAlmanac.round(Calendar calendar, Fields.Type type) 修改日期为某个时间字段四舍五入时间static DateTimeAlmanac.round(Date date, Fields.Type type) 修改日期为某个时间字段四舍五入时间DateTime.setField(Fields.Type field, int value) 设置日期的某个部分 如果此对象为可变对象,返回自身,否则返回新对象,设置是否可变对象见DateTime.setMutable(boolean)static CalendarAlmanac.truncate(Calendar calendar, Fields.Type type) 修改日期为某个时间字段起始时间static DateTimeAlmanac.truncate(Date date, Fields.Type type) 修改日期为某个时间字段起始时间Constructors in org.aoju.bus.core.date with parameters of type Fields.TypeModifierConstructorDescriptionBoundary(Date start, Date end, Fields.Type type) 构造,包含开始和结束日期时间Boundary(Date start, Date end, Fields.Type type, int step) 构造,包含开始和结束日期时间Boundary(Date start, Date end, Fields.Type type, int step, boolean isIncludeStart, boolean isIncludeEnd) 构造 -
Uses of Fields.Type in org.aoju.bus.core.lang
Methods in org.aoju.bus.core.lang that return Fields.TypeModifier and TypeMethodDescriptionstatic Fields.TypeFields.Type.of(int calendarPartIntValue) 将Calendar相关值转换为DatePart枚举对象static Fields.TypeReturns the enum constant of this class with the specified name.static Fields.Type[]Fields.Type.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Fields.Type in org.aoju.bus.core.toolkit
Methods in org.aoju.bus.core.toolkit with parameters of type Fields.TypeModifier and TypeMethodDescriptionstatic DateTimeRandomKit.randomDate(Date baseDate, Fields.Type type, int min, int max) 以给定日期为基准,随机产生一个日期static BoundaryDateKit.range(Date start, Date end, Fields.Type type) 创建日期范围生成器static voidDateKit.rangeConsume(Date start, Date end, Fields.Type type, Consumer<Date> consumer) 按日期范围遍历,执行 consumerstatic <T> List<T> 按日期范围遍历,执行 functionDateKit.rangeToList(Date start, Date end, Fields.Type type) 根据步进单位获取起始日期时间和结束日期时间的时间区间集合DateKit.rangeToList(Date start, Date end, Fields.Type type, int step) 根据步进单位和步进获取起始日期时间和结束日期时间的时间区间集合