001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.util.common.transfer; 018 019import java.io.Serializable; 020 021public class Limit 022 implements Serializable { 023 024 private String count; 025 private String offset; 026 027 private void init(final String count, final String offset) { 028 this.count = count; 029 this.offset = offset; 030 } 031 032 /** Creates a new instance of Limit */ 033 public Limit(final String count, final String offset) { 034 init(count, offset); 035 } 036 037 /** Creates a new instance of Limit */ 038 public Limit(final String count) { 039 init(count, null); 040 } 041 042 public String getCount() { 043 return count; 044 } 045 046 public void setCount(final String count) { 047 this.count = count; 048 } 049 050 public String getOffset() { 051 return offset; 052 } 053 054 public void setOffset(final String offset) { 055 this.offset = offset; 056 } 057 058}