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

com.vertexvis.model.AnyOfQueryByIdQueryByCollectionQueryAll Maven / Gradle / Ivy

package com.vertexvis.model;

import javax.annotation.Nullable;

public class AnyOfQueryByIdQueryByCollectionQueryAll {
  private QueryById queryById;
  private QueryByCollection queryByCollection;
  private QueryAll queryAll;

  public AnyOfQueryByIdQueryByCollectionQueryAll(QueryById queryById) {
    this.queryById = queryById;
  }

  public AnyOfQueryByIdQueryByCollectionQueryAll(QueryByCollection queryByCollection) {
    this.queryByCollection = queryByCollection;
  }

  public AnyOfQueryByIdQueryByCollectionQueryAll(QueryAll queryAll) {
    this.queryAll = queryAll;
  }

  public Object getQuery() {
    if (queryById != null) {
      return this.queryById;
    }
    if (queryByCollection != null) {
      return this.queryByCollection;
    }
    if (queryAll != null) {
      return this.queryAll;
    }

    return null;
  }

  @Nullable
  public QueryById getQueryById() {
    return this.queryById;
  }

  @Nullable
  public QueryByCollection getQueryByCollection() {
    return this.queryByCollection;
  }

  @Nullable
  public QueryAll getQueryAll() {
    return this.queryAll;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy