chromium/components/segmentation_platform/public/android/java/src/org/chromium/components/segmentation_platform/ClassificationResult.java

// Copyright 2023 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.segmentation_platform;

import org.chromium.components.segmentation_platform.prediction_status.PredictionStatus;

import java.util.List;

public class ClassificationResult {
    public final @PredictionStatus int status;

    public final List<String> orderedLabels;

    public ClassificationResult(int status, String[] orderedLabels) {
        this.status = status;
        this.orderedLabels = orderedLabels == null ? null : List.of(orderedLabels);
    }
}