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
-
Method Details
-
requireId
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()
-