yoyo.framework.standard.shared.AbstractValueObject.java Source code

Java tutorial

Introduction

Here is the source code for yoyo.framework.standard.shared.AbstractValueObject.java

Source

// ========================================================================
// Copyright (C) YOYO Project Team. All rights reserved.
// GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
// http://www.gnu.org/licenses/agpl-3.0.txt
// ========================================================================
package yoyo.framework.standard.shared;

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

/**
 * 
 * @param <T> 
 * @author nilcy
 */
public abstract class AbstractValueObject<T extends AbstractValueObject<T>> extends AbstractDataObject
        implements ValueObject<T> {
    /** ? */
    private static final long serialVersionUID = 437387339515812017L;

    /**  */
    public AbstractValueObject() {
    }

    /**
     * {@inheritDoc}
     * <p>
     * ????????????????(transient)????
     * </p>
     */
    @Override
    public boolean sameValueAs(final T other) {
        return EqualsBuilder.reflectionEquals(this, other, false);
    }
}