package com.yangdb.fuse.model.results;

/*-
 * #%L
 * Assignment.java - fuse-model - yangdb - 2,016
 * org.codehaus.mojo-license-maven-plugin-1.16
 * $Id$
 * $HeadURL$
 * %%
 * Copyright (C) 2016 - 2018 yangdb   ------ www.yangdb.org ------
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */


import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import javaslang.collection.Stream;

import java.util.*;
import java.util.concurrent.atomic.AtomicLong;

/**
 * Created by benishue on 21-Feb-17.
 */


@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AssignmentCount extends Assignment{
    //region Constructors
    public AssignmentCount(Map<String, AtomicLong> labelsCount) {
        this.labelsCount = labelsCount;
    }
    //endregion

    //region Properties

    @JsonAnyGetter
    public Map<String, AtomicLong> getLabelsCount() {
        return labelsCount;
    }


    //endregion

    //region Override Methods
    @Override
    public String toString()
    {
        return "Assignment ["+labelsCount.toString()+"]";
    }
    //endregion

    //region Fields
    private Map<String, AtomicLong> labelsCount ;
    //endregion

}
