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

com.arjuna.mw.wsas.completionstatus.Success Maven / Gradle / Ivy

The newest version!
/*
   Copyright The Narayana Authors
   SPDX-License-Identifier: Apache-2.0
 */



package com.arjuna.mw.wsas.completionstatus;

/**
 * The activity has terminated in a success state. The activity state can
 * toggle between this and any other state.
 *
 * @author Mark Little ([email protected])
 * @version $Id: Success.java,v 1.1 2002/11/25 10:51:41 nmcl Exp $
 * @since 1.0.
 */

public class Success implements CompletionStatus
{

    public static Success instance ()
    {
	return _instance;
    }

    /**
     * Two statuses are equal if their targets are the same.
     */

    public boolean equals (Object param)
    {
	if (this == param)
	    return true;
	else
	{
	    if (param instanceof Success)
		return true;
	    else
		return false;
	}
    }	

    public String toString ()
    {
	return "CompletionStatus.Success";
    }

    private Success ()
    {
    }

    private static final Success _instance = new Success();
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy