public static final class ProtectionReport.Builder
- Object
- ProtectionReport.Builder
Accumulates the answers for a
ProtectionReport.Methods
Inherited methods
Method details
set
public ProtectionReport.Builder set(Protection protection, int value)Records one answer.
value outside the three constants is stored as UNKNOWN rather
than accepted, so a port that passes a boolean by mistake cannot claim a protection.set
public ProtectionReport.Builder set(Protection protection, boolean value)Records
yes or no. There is no boolean spelling of UNKNOWN on purpose: a port
that does not know must say so through set(Protection, int).build
public ProtectionReport build()Builds the immutable report.