chromium/components/autofill/android/java/src/org/chromium/components/autofill/Completable.java

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.components.autofill;

/**
 * The interface for types that may be complete, i.e., can be sent to the merchant as-is, without
 * being edited by the user first.
 */
public interface Completable {
    /** @return Whether the data is complete and can be sent to the merchant as-is */
    boolean isComplete();

    /** @return the completeness score of the data, used to sort multiple options */
    int getCompletenessScore();
}