Membered.java

  1. package no.nav.data.team.shared.domain;

  2. import com.fasterxml.jackson.annotation.JsonIgnore;
  3. import no.nav.data.common.storage.domain.DomainObject;

  4. import java.time.LocalDateTime;
  5. import java.util.ArrayList;
  6. import java.util.List;

  7. public interface Membered extends DomainObject {

  8.     String getName();

  9.     List<? extends Member> getMembers();

  10.     @JsonIgnore
  11.     default List<Member> getMembersAsSuper() {
  12.         return new ArrayList<>(getMembers());
  13.     }

  14.     LocalDateTime getLastNudge();

  15. }