Class ProtectionReport.Builder
java.lang.Object
com.codename1.security.vault.ProtectionReport.Builder
- Enclosing class:
ProtectionReport
Accumulates the answers for a
ProtectionReport.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the immutable report.set(Protection protection, boolean value) Recordsyesorno.set(Protection protection, int value) Records one answer.
-
Method Details
-
set
Records one answer.valueoutside the three constants is stored asProtectionReport.UNKNOWNrather than accepted, so a port that passes a boolean by mistake cannot claim a protection. -
set
Recordsyesorno. There is no boolean spelling ofUNKNOWNon purpose: a port that does not know must say so throughset(Protection, int). -
build
Builds the immutable report.
-