[New] Added Order constructor with ZonedDateTime

This commit is contained in:
Robert von Burg 2023-08-25 09:46:39 +02:00
parent 45426db150
commit fb13290edc
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 16 additions and 0 deletions

View File

@ -84,6 +84,22 @@ public class Order extends AbstractStrolchRootElement implements StrolchRootElem
setDate(date);
}
/**
* Extended Constructor for date and {@link State}
*
* @param id the id
* @param name the name
* @param type the type
* @param date the date
* @param state the state
*/
public Order(String id, String name, String type, ZonedDateTime date, State state) {
super(id, name, type);
setState(state);
setDate(date);
}
@Override
public void setId(String id) {
this.locator = null;