rapture.common.TimedEventRecord Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common;
import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class TimedEventRecord implements RaptureTransferObject, Debugable {
/*
* Start of field 'eventName' (String)
*/
private String eventName;
@JsonProperty("eventName")
public String getEventName() {
return eventName;
}
@JsonProperty("eventName")
public void setEventName(String eventName) {
this.eventName = eventName ;
}
/*
* end of field 'eventName' (String)
*/
/*
* Start of field 'eventContext' (String)
*/
private String eventContext;
@JsonProperty("eventContext")
public String getEventContext() {
return eventContext;
}
@JsonProperty("eventContext")
public void setEventContext(String eventContext) {
this.eventContext = eventContext ;
}
/*
* end of field 'eventContext' (String)
*/
/*
* Start of field 'when' (Date)
*/
private Date when;
@JsonProperty("when")
public Date getWhen() {
return when;
}
@JsonProperty("when")
public void setWhen(Date when) {
this.when = when ;
}
/*
* end of field 'when' (Date)
*/
/*
* Start of field 'end' (Date)
*/
private Date end;
@JsonProperty("end")
public Date getEnd() {
return end;
}
@JsonProperty("end")
public void setEnd(Date end) {
this.end = end ;
}
/*
* end of field 'end' (Date)
*/
/*
* Start of field 'infoContext' (String)
*/
private String infoContext;
@JsonProperty("infoContext")
public String getInfoContext() {
return infoContext;
}
@JsonProperty("infoContext")
public void setInfoContext(String infoContext) {
this.infoContext = infoContext ;
}
/*
* end of field 'infoContext' (String)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((infoContext == null) ? 0 : infoContext.hashCode());
result = prime * result + ((eventName == null) ? 0 : eventName.hashCode());
result = prime * result + ((end == null) ? 0 : end.hashCode());
result = prime * result + ((when == null) ? 0 : when.hashCode());
result = prime * result + ((eventContext == null) ? 0 : eventContext.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
TimedEventRecord other = (TimedEventRecord) obj;
if (infoContext == null) {
if (other.infoContext != null) {
return false;
}
} else if (!infoContext.equals(other.infoContext)) {
return false;
}
if (eventName == null) {
if (other.eventName != null) {
return false;
}
} else if (!eventName.equals(other.eventName)) {
return false;
}
if (end == null) {
if (other.end != null) {
return false;
}
} else if (!end.equals(other.end)) {
return false;
}
if (when == null) {
if (other.when != null) {
return false;
}
} else if (!when.equals(other.when)) {
return false;
}
if (eventContext == null) {
if (other.eventContext != null) {
return false;
}
} else if (!eventContext.equals(other.eventContext)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" infoContext= ");
Object o = infoContext;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" eventName= ");
Object o = eventName;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" end= ");
Object o = end;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" when= ");
Object o = when;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" eventContext= ");
Object o = eventContext;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
return sb.append("\n").toString();
}
@Override
public String toString() {
return JacksonUtil.jsonFromObject(this);
}
private ApiVersion _raptureVersion;
@JsonProperty("_raptureVersion")
public ApiVersion get_raptureVersion() {
return _raptureVersion;
}
@JsonProperty("_raptureVersion")
public void set_raptureVersion(ApiVersion _raptureVersion) {
this._raptureVersion = _raptureVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy