package com.sunyard.certcompare.model; import com.sunyard.certcompare.util.Text; import java.util.List; /** * 报表中的一行差异记录。 */ public class CompareRow { public final CompareCategory category; public final CertKey key; public final CertRecord main; public final CertRecord slave; public final List diffs; public final List notes; public final String defaultChoice; public final String dnText; public CompareRow(CompareCategory category, CertKey key, CertRecord main, CertRecord slave, List diffs, List notes, String defaultChoice, String dnText) { this.category = category; this.key = key; this.main = main; this.slave = slave; this.diffs = diffs; this.notes = notes; this.defaultChoice = defaultChoice; this.dnText = dnText == null ? "" : dnText; } public String cn() { return Text.cnFromDn(dnText); } }