public int getIndegree() {
    return inputField.getText().isEmpty() ? 0 : Integer.parseInt(inputField.getText());
  }
User interface for setting in-degree conditions.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/criteriadialog/conditions/indegrees/InDegreeCriterionPanel.java