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

com.logmein.gotowebinar_2_0.api.model.Page Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
/*
 * © 2017 LogMeIn, Inc. All Rights Reserved.
 * All rights reserved.
 * 
 * This software is distributed under the terms and conditions of the
 * LogMeIn SDK License Agreement. Please see file LICENSE for details.
 * 
 * Auto-generated file.
 */


package com.logmein.gotowebinar_2_0.api.model;


import com.logmein.gotowebinar_2_0.api.common.JsonUtil;

/**
 * 
 */
public class Page {

    /* The page size */
    private Integer size = null;

    /* The total elements */
    private Integer totalElements = null;

    /* The pages count */
    private Integer totalPages = null;

    /* The current page number. The first page is 0 */
    private Integer number = null;

    /**
     * @return The page size
     */
    public Integer getSize() {
        return size;
    }

    /**
     * @param size The page size
     */
    public void setSize(Integer size) {
        this.size = size;
    }

    /**
     * @return The total elements
     */
    public Integer getTotalElements() {
        return totalElements;
    }

    /**
     * @param totalElements The total elements
     */
    public void setTotalElements(Integer totalElements) {
        this.totalElements = totalElements;
    }

    /**
     * @return The pages count
     */
    public Integer getTotalPages() {
        return totalPages;
    }

    /**
     * @param totalPages The pages count
     */
    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    /**
     * @return The current page number. The first page is 0
     */
    public Integer getNumber() {
        return number;
    }

    /**
     * @param number The current page number. The first page is 0
     */
    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Page {\n");
        String sizeString = JsonUtil.Stringify(size);
        if (sizeString != null && !sizeString.isEmpty())
            sb.append(String.format("  size: %s\n", sizeString));
        String totalElementsString = JsonUtil.Stringify(totalElements);
        if (totalElementsString != null && !totalElementsString.isEmpty())
            sb.append(String.format("  totalElements: %s\n", totalElementsString));
        String totalPagesString = JsonUtil.Stringify(totalPages);
        if (totalPagesString != null && !totalPagesString.isEmpty())
            sb.append(String.format("  totalPages: %s\n", totalPagesString));
        String numberString = JsonUtil.Stringify(number);
        if (numberString != null && !numberString.isEmpty())
            sb.append(String.format("  number: %s\n", numberString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy