public EMatchState getMatchState() {
    if (isCallGraphView()) {
      return null;
    }

    if (getAddress(ESide.PRIMARY) != null && getAddress(ESide.SECONDARY) != null) {
      return EMatchState.MATCHED;
    }
    if (getAddress(ESide.PRIMARY) != null && getAddress(ESide.SECONDARY) == null) {
      return EMatchState.PRIMARY_UNMATCHED;
    }
    if (getAddress(ESide.PRIMARY) == null && getAddress(ESide.SECONDARY) != null) {
      return EMatchState.SECONDRAY_UNMATCHED;
    }

    return null;
  }
Base class for storing view related metadata.
java/ui/src/main/java/com/google/security/zynamics/bindiff/project/userview/ViewData.java