Class Allowance
java.lang.Object
co.yellowdog.platform.model.Allowance
- All Implemented Interfaces:
Identified
- Direct Known Subclasses:
AccountAllowance,RequirementAllowance,RequirementsAllowance,SourceAllowance,SourcesAllowance
@ValidatedBy(AllowanceValidator.class)
public abstract class Allowance
extends Object
implements Identified
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAllowance(String description, Instant effectiveFrom, Instant effectiveUntil, int allowedHours, Integer boostHours, AllowanceResetType resetType, Integer resetInterval, AllowanceLimitEnforcement limitEnforcement, Integer hardLimitGraceMinutes, List<InstanceStatus> monitoredStatuses) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintgetId()Returns the IDList<@NotNull InstanceStatus> inthashCode()voidsetAllowedHours(int allowedHours) voidsetBoostHours(Integer boostHours) voidsetCreatedById(String createdById) voidsetDescription(String description) voidsetEffectiveFrom(Instant effectiveFrom) voidsetEffectiveUntil(Instant effectiveUntil) voidsetHardLimitGraceMinutes(Integer hardLimitGraceMinutes) voidvoidsetLimitEnforcement(AllowanceLimitEnforcement limitEnforcement) voidsetMonitoredStatuses(List<@NotNull InstanceStatus> monitoredStatuses) voidsetRemainingHours(Double remainingHours) voidsetResetInterval(Integer resetInterval) voidsetResetType(AllowanceResetType resetType) toString()
-
Field Details
-
DESCRIPTION_MAX_LENGTH
public static final int DESCRIPTION_MAX_LENGTH- See Also:
-
-
Constructor Details
-
Allowance
protected Allowance(String description, Instant effectiveFrom, Instant effectiveUntil, int allowedHours, Integer boostHours, AllowanceResetType resetType, Integer resetInterval, AllowanceLimitEnforcement limitEnforcement, Integer hardLimitGraceMinutes, List<InstanceStatus> monitoredStatuses)
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the ID- Specified by:
getIdin interfaceIdentified- Returns:
- the ID
-
getDescription
-
getCreatedById
-
getEffectiveFrom
-
getEffectiveUntil
-
getAllowedHours
public int getAllowedHours() -
getRemainingHours
-
getBoostHours
-
getResetType
-
getResetInterval
-
getLimitEnforcement
-
getHardLimitGraceMinutes
-
getMonitoredStatuses
-
setId
-
setDescription
-
setCreatedById
-
setEffectiveFrom
-
setEffectiveUntil
-
setAllowedHours
public void setAllowedHours(int allowedHours) -
setRemainingHours
-
setBoostHours
-
setResetType
-
setResetInterval
-
setLimitEnforcement
-
setHardLimitGraceMinutes
-
setMonitoredStatuses
-
equals
-
canEqual
-
hashCode
-
toString
-