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

se.laz.casual.jca.conversation.ConversationDirection Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
/*
 * Copyright (c) 2021, The casual project. All rights reserved.
 *
 * This software is licensed under the MIT license, https://opensource.org/licenses/MIT
 */
package se.laz.casual.jca.conversation;

public enum ConversationDirection
{
    SEND,
    RECEIVE;

    ConversationDirection switchDirection()
    {
        return this == ConversationDirection.SEND ? RECEIVE : SEND;
    }

    boolean isReceive()
    {
        return this == RECEIVE;
    }

    boolean isSend()
    {
        return this == SEND;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy