-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed temporal to time, added support for DayOfWeek, Month, and Year
- Loading branch information
Showing
90 changed files
with
1,338 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
builder/src/main/java/io/github/mmm/property/builder/time/DayOfWeekPropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
package io.github.mmm.property.builder.time; | ||
|
||
import java.time.DayOfWeek; | ||
|
||
import io.github.mmm.property.AttributeReadOnly; | ||
import io.github.mmm.property.PropertyMetadata; | ||
import io.github.mmm.property.builder.PropertyBuilder; | ||
import io.github.mmm.property.builder.lang.ComparablePropertyBuilder; | ||
import io.github.mmm.property.time.dayofweek.DayOfWeekProperty; | ||
import io.github.mmm.validation.time.dayofweek.ValidatorBuilderDayOfWeek; | ||
|
||
/** | ||
* {@link PropertyBuilder} for {@link DayOfWeekProperty}. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public final class DayOfWeekPropertyBuilder extends | ||
ComparablePropertyBuilder<DayOfWeek, DayOfWeekProperty, ValidatorBuilderDayOfWeek<DayOfWeekPropertyBuilder>, DayOfWeekPropertyBuilder> { | ||
|
||
/** | ||
* The constructor. | ||
* | ||
* @param lock the {@link #getLock() lock}. | ||
*/ | ||
public DayOfWeekPropertyBuilder(AttributeReadOnly lock) { | ||
|
||
super(lock); | ||
} | ||
|
||
@Override | ||
protected ValidatorBuilderDayOfWeek<DayOfWeekPropertyBuilder> createValidatorBuilder() { | ||
|
||
return new ValidatorBuilderDayOfWeek<>(this); | ||
} | ||
|
||
@Override | ||
protected DayOfWeekProperty build(String name, PropertyMetadata<DayOfWeek> metadata) { | ||
|
||
return new DayOfWeekProperty(name, metadata); | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
...lder/temporal/InstantPropertyBuilder.java → .../builder/time/InstantPropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...er/temporal/LocalDatePropertyBuilder.java → ...uilder/time/LocalDatePropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...emporal/LocalDateTimePropertyBuilder.java → ...er/time/LocalDateTimePropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...er/temporal/LocalTimePropertyBuilder.java → ...uilder/time/LocalTimePropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
builder/src/main/java/io/github/mmm/property/builder/time/MonthPropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
package io.github.mmm.property.builder.time; | ||
|
||
import java.time.Month; | ||
|
||
import io.github.mmm.property.AttributeReadOnly; | ||
import io.github.mmm.property.PropertyMetadata; | ||
import io.github.mmm.property.builder.PropertyBuilder; | ||
import io.github.mmm.property.builder.lang.ComparablePropertyBuilder; | ||
import io.github.mmm.property.time.month.MonthProperty; | ||
import io.github.mmm.validation.time.month.ValidatorBuilderMonth; | ||
|
||
/** | ||
* {@link PropertyBuilder} for {@link MonthProperty}. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public final class MonthPropertyBuilder extends | ||
ComparablePropertyBuilder<Month, MonthProperty, ValidatorBuilderMonth<MonthPropertyBuilder>, MonthPropertyBuilder> { | ||
|
||
/** | ||
* The constructor. | ||
* | ||
* @param lock the {@link #getLock() lock}. | ||
*/ | ||
public MonthPropertyBuilder(AttributeReadOnly lock) { | ||
|
||
super(lock); | ||
} | ||
|
||
@Override | ||
protected ValidatorBuilderMonth<MonthPropertyBuilder> createValidatorBuilder() { | ||
|
||
return new ValidatorBuilderMonth<>(this); | ||
} | ||
|
||
@Override | ||
protected MonthProperty build(String name, PropertyMetadata<Month> metadata) { | ||
|
||
return new MonthProperty(name, metadata); | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
...mporal/OffsetDateTimePropertyBuilder.java → ...r/time/OffsetDateTimePropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...r/temporal/OffsetTimePropertyBuilder.java → ...ilder/time/OffsetTimePropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
builder/src/main/java/io/github/mmm/property/builder/time/YearPropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
package io.github.mmm.property.builder.time; | ||
|
||
import java.time.Year; | ||
|
||
import io.github.mmm.property.AttributeReadOnly; | ||
import io.github.mmm.property.PropertyMetadata; | ||
import io.github.mmm.property.builder.PropertyBuilder; | ||
import io.github.mmm.property.builder.lang.ComparablePropertyBuilder; | ||
import io.github.mmm.property.time.year.YearProperty; | ||
import io.github.mmm.validation.time.year.ValidatorBuilderYear; | ||
|
||
/** | ||
* {@link PropertyBuilder} for {@link YearProperty}. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public final class YearPropertyBuilder extends | ||
ComparablePropertyBuilder<Year, YearProperty, ValidatorBuilderYear<YearPropertyBuilder>, YearPropertyBuilder> { | ||
|
||
/** | ||
* The constructor. | ||
* | ||
* @param lock the {@link #getLock() lock}. | ||
*/ | ||
public YearPropertyBuilder(AttributeReadOnly lock) { | ||
|
||
super(lock); | ||
} | ||
|
||
@Override | ||
protected ValidatorBuilderYear<YearPropertyBuilder> createValidatorBuilder() { | ||
|
||
return new ValidatorBuilderYear<>(this); | ||
} | ||
|
||
@Override | ||
protected YearProperty build(String name, PropertyMetadata<Year> metadata) { | ||
|
||
return new YearProperty(name, metadata); | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
...emporal/ZonedDateTimePropertyBuilder.java → ...er/time/ZonedDateTimePropertyBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.