Interface IChangeable


public interface IChangeable
Interface for data objects that contain their latest change time.

### Example ###

 
 import java.time.ZonedDateTime;

 public class MyData implements IStringIdentifiable, IChangeable {
  private String id;
  public String field1;
  public String field2;
  private ZonedDateTime time;

  @Override
  public ZonedDateTime changeTime() {
      time = ZonedDateTime.now();
      return time;
  }

  @Override
  public String getId() {
      return id;
  }

  @Override
  public void setId(String value) {
      id = value;
  }
 }
 
 
  • Method Summary

    Modifier and Type
    Method
    Description
    The UTC time at which the object was last changed (created or updated).
  • Method Details

    • changeTime

      ZonedDateTime changeTime()
      The UTC time at which the object was last changed (created or updated).
      Returns:
      changed date