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 HistoryTransfer<T extends BaseTransfer> 022 implements Serializable { 023 024 private T snapshot; 025 private Long unformattedFromTime; 026 private String fromTime; 027 private Long unformattedThruTime; 028 private String thruTime; 029 030 /** Creates a new instance of HistoryTransfer */ 031 public HistoryTransfer(T snapshot, Long unformattedFromTime, String fromTime, Long unformattedThruTime, String thruTime) { 032 this.snapshot = snapshot; 033 this.unformattedFromTime = unformattedFromTime; 034 this.fromTime = fromTime; 035 this.unformattedThruTime = unformattedThruTime; 036 this.thruTime = thruTime; 037 } 038 039 /** 040 * Returns the snapshot. 041 * @return the snapshot 042 */ 043 public T getSnapshot() { 044 return snapshot; 045 } 046 047 /** 048 * Sets the snapshot. 049 * @param snapshot the snapshot to set 050 */ 051 public void setSnapshot(T snapshot) { 052 this.snapshot = snapshot; 053 } 054 055 /** 056 * Returns the unformattedFromTime. 057 * @return the unformattedFromTime 058 */ 059 public Long getUnformattedFromTime() { 060 return unformattedFromTime; 061 } 062 063 /** 064 * Sets the unformattedFromTime. 065 * @param unformattedFromTime the unformattedFromTime to set 066 */ 067 public void setUnformattedFromTime(Long unformattedFromTime) { 068 this.unformattedFromTime = unformattedFromTime; 069 } 070 071 /** 072 * Returns the fromTime. 073 * @return the fromTime 074 */ 075 public String getFromTime() { 076 return fromTime; 077 } 078 079 /** 080 * Sets the fromTime. 081 * @param fromTime the fromTime to set 082 */ 083 public void setFromTime(String fromTime) { 084 this.fromTime = fromTime; 085 } 086 087 /** 088 * Returns the unformattedThruTime. 089 * @return the unformattedThruTime 090 */ 091 public Long getUnformattedThruTime() { 092 return unformattedThruTime; 093 } 094 095 /** 096 * Sets the unformattedThruTime. 097 * @param unformattedThruTime the unformattedThruTime to set 098 */ 099 public void setUnformattedThruTime(Long unformattedThruTime) { 100 this.unformattedThruTime = unformattedThruTime; 101 } 102 103 /** 104 * Returns the thruTime. 105 * @return the thruTime 106 */ 107 public String getThruTime() { 108 return thruTime; 109 } 110 111 /** 112 * Sets the thruTime. 113 * @param thruTime the thruTime to set 114 */ 115 public void setThruTime(String thruTime) { 116 this.thruTime = thruTime; 117 } 118 119}