cdc.applic.dictionaries.edit.events.EnEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdc-applic-dictionaries-edit Show documentation
Show all versions of cdc-applic-dictionaries-edit Show documentation
Applicabilities Dictionaries Edition.
The newest version!
package cdc.applic.dictionaries.edit.events;
import java.time.format.DateTimeFormatter;
import cdc.applic.dictionaries.edit.EnAbstractElement;
import cdc.util.events.Event;
public abstract class EnEvent extends Event {
private final EnAbstractElement target;
protected EnEvent(EnAbstractElement target) {
this.target = target;
}
public final EnAbstractElement getTarget() {
return target;
}
@Override
public String toString() {
return "[" + getLocalDateTime().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)
+ " " + getClass().getSimpleName()
+ " " + getTarget().getId() + "]";
}
}