Interface Reference<T>

All Known Subinterfaces:
BaseObject<T>, Client, ClientContact, ClientReferenceDto, Creator, Estimate, EstimateItem, EstimateItem.Category, EstimateMessage, EstimateReferenceDto, Expense, ExpenseCategory, ExpenseCategoryReferenceDto, ExternalService, Invoice, InvoiceItem, InvoiceItem.Category, InvoiceMessage, InvoicePayment, InvoiceReferenceDto, PaymentGateway, Project, ProjectAssignment, ProjectReferenceDto, Retainer, Task, TaskAssignment, TaskReferenceDto, TimeEntry, UserAssignment, UserAssignmentUpdateInfo, UserReferenceDto
All Known Implementing Classes:
GenericReference, Role, User

public interface Reference<T>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static <T> void
    Require that id is not null.
  • Method Details

    • requireId

      static <T> void requireId(Reference<T> ref)
      Require that id is not null.

      Example: list.forEach(Reference::requireId);

      Type Parameters:
      T - the type of the reference
      Parameters:
      ref - the reference
      Throws:
      NullPointerException - if id is null
    • getId

      Long getId()