All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavemaker.runtime.data.model.AggregationInfo Maven / Gradle / Ivy

There is a newer version: 11.9.2.ee
Show newest version
/*******************************************************************************
 * Copyright (C) 2022-2023 WaveMaker, Inc.
 *
 * 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.
 ******************************************************************************/
package com.wavemaker.runtime.data.model;

import java.util.List;
import java.util.Objects;

/**
 * @author Dilip Kumar
 * @since 15/3/17
 */
public class AggregationInfo {

    private List groupByFields;
    private List aggregations;
    private String filter;

    public List getGroupByFields() {
        return groupByFields;
    }

    public void setGroupByFields(final List groupByFields) {
        this.groupByFields = groupByFields;
    }

    public List getAggregations() {
        return aggregations;
    }

    public void setAggregations(final List aggregations) {
        this.aggregations = aggregations;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(final String filter) {
        this.filter = filter;
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof AggregationInfo)) {
            return false;
        }
        final AggregationInfo that = (AggregationInfo) o;
        return Objects.equals(getGroupByFields(), that.getGroupByFields()) &&
            Objects.equals(getAggregations(), that.getAggregations()) &&
            Objects.equals(getFilter(), that.getFilter());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getGroupByFields(), getAggregations(), getFilter());
    }

    @Override
    public String toString() {
        return "AggregationInfo{" +
            "groupByFields=" + groupByFields +
            ", aggregations=" + aggregations +
            ", filter='" + filter + '\'' +
            '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy