public static final class ProtectionReport.Builder

  1. Object
  2. ProtectionReport.Builder
Accumulates the answers for a ProtectionReport.

Methods

public ProtectionReport.Builder set(Protection protection, int value)Records one answer.
public ProtectionReport.Builder set(Protection protection, boolean value)Records yes or no.
public ProtectionReport build()Builds the immutable report.

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.