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

rapture.common.ChildrenTransferObject 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.Map;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* 
**/
@SuppressWarnings("all")
public class ChildrenTransferObject  implements RaptureTransferObject, Debugable  {
    /*
    *  Start of field 'parentURI' (String) 
    */
    private String parentURI;

    @JsonProperty("parentURI")
    public String getParentURI() {
       return parentURI;
    }

    @JsonProperty("parentURI")
    public void setParentURI(String parentURI) {
       this.parentURI =  parentURI ;
    }
    /*
    *  end of field 'parentURI' (String) 
    */


    /*
    *  Start of field 'children' (Map) 
    */
    private Map children;

    @JsonProperty("children")
    public Map getChildren() {
       return children;
    }

    @JsonProperty("children")
    public void setChildren(Map children) {
       this.children =  children ;
    }
    /*
    *  end of field 'children' (Map) 
    */


    /*
    *  Start of field 'deleted' (Map) 
    */
    private Map deleted;

    @JsonProperty("deleted")
    public Map getDeleted() {
       return deleted;
    }

    @JsonProperty("deleted")
    public void setDeleted(Map deleted) {
       this.deleted =  deleted ;
    }
    /*
    *  end of field 'deleted' (Map) 
    */


    /*
    *  Start of field 'indexMark' (String) 
    */
    private String indexMark;

    @JsonProperty("indexMark")
    public String getIndexMark() {
       return indexMark;
    }

    @JsonProperty("indexMark")
    public void setIndexMark(String indexMark) {
       this.indexMark =  indexMark ;
    }
    /*
    *  end of field 'indexMark' (String) 
    */


    /*
    *  Start of field 'remainder' (Long) 
    */
    private Long remainder;

    @JsonProperty("remainder")
    public Long getRemainder() {
       return remainder;
    }

    @JsonProperty("remainder")
    public void setRemainder(Long remainder) {
       this.remainder =  remainder ;
    }
    /*
    *  end of field 'remainder' (Long) 
    */


   

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((deleted == null) ? 0 : deleted.hashCode());
        result = prime * result + ((parentURI == null) ? 0 : parentURI.hashCode());
        result = prime * result + ((children == null) ? 0 : children.hashCode());
        result = prime * result + ((indexMark == null) ? 0 : indexMark.hashCode());
        result = prime * result + ((remainder == null) ? 0 : remainder.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;
        
        ChildrenTransferObject other = (ChildrenTransferObject) obj;

        if (deleted == null) {
            if (other.deleted != null) {
                return false;
            }
        } else if (!deleted.equals(other.deleted)) {
            return false;
        }

        if (parentURI == null) {
            if (other.parentURI != null) {
                return false;
            }
        } else if (!parentURI.equals(other.parentURI)) {
            return false;
        }

        if (children == null) {
            if (other.children != null) {
                return false;
            }
        } else if (!children.equals(other.children)) {
            return false;
        }

        if (indexMark == null) {
            if (other.indexMark != null) {
                return false;
            }
        } else if (!indexMark.equals(other.indexMark)) {
            return false;
        }

        if (remainder == null) {
            if (other.remainder != null) {
                return false;
            }
        } else if (!remainder.equals(other.remainder)) {
            return false;
        }

           
        return true;
    }


    /**/
    public String debug() {
        StringBuilder sb = new StringBuilder();
            {
                sb.append(" deleted= ");
                Object o = deleted;
                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(" parentURI= ");
                Object o = parentURI;
                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(" children= ");
                Object o = children;
                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(" indexMark= ");
                Object o = indexMark;
                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(" remainder= ");
                Object o = remainder;
                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