com.github.aynu.mosir.core.standard.lang.AbstractValueObject.java Source code

Java tutorial

Introduction

Here is the source code for com.github.aynu.mosir.core.standard.lang.AbstractValueObject.java

Source

// ----------------------------------------------------------------------------
// Copyright (C) Aynu Evolution Laboratory. All rights reserved.
// GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
// http://www.gnu.org/licenses/gpl-3.0-standalone.html
// ----------------------------------------------------------------------------
package com.github.aynu.mosir.core.standard.lang;

import org.apache.commons.lang3.builder.EqualsBuilder;

/**
 * ()
 * <dl>
 * <dt>?
 * <dd>?????
 * </dl>
 * @param <T> 
 * @author nilcy
 */
public abstract class AbstractValueObject<T extends ValueObject<T>> extends AbstractDataObject<T>
        implements ValueObject<T> {
    /** ? */
    private static final long serialVersionUID = -8215359956960310982L;
    /** ? */
    private static final boolean TEST_TRANSIENTS = false;

    /**  */
    public AbstractValueObject() {
    }

    /**
     * {@inheritDoc}
     * <dl>
     * <dt>?
     * <dd>(transient)????????????
     * </dl>
     */
    @Override
    public boolean sameValueAs(final T object) {
        return EqualsBuilder.reflectionEquals(this, object, TEST_TRANSIENTS);
    }
}