Codota Logo
Serializable.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.jme3.network.serializing.Serializable
constructor

Best Java code snippets using com.jme3.network.serializing.Serializable.<init> (Showing top 20 results out of 315)

  • Common ways to obtain Serializable
private void myMethod () {
Serializable s =
  • Codota IconClass klass;(Serializable) klass.getAnnotation(Serializable.class)
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class TestMessage extends AbstractMessage {
  public TestMessage() {
    setReliable(testReliable);
  }
}
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class PingMessage extends AbstractMessage {
}
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class TimestampMessage extends AbstractMessage {
  long timeSent     = 0;
  long timeReceived = 0;
  public TimestampMessage(){
    setReliable(false);
  }
  public TimestampMessage(long timeSent, long timeReceived){
    setReliable(false);
    this.timeSent = timeSent;
    this.timeReceived = timeReceived;
  }
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * GZIPCompressedMessage is the class that you need to use should you want to
 *  compress a message using Gzip.
 *
 * @author Lars Wesselius
 */
@Serializable()
public class GZIPCompressedMessage extends CompressedMessage {
  public GZIPCompressedMessage() {
    super();
  }

  public GZIPCompressedMessage(Message msg) {
    super(msg);
  }
}

origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class PongMessage extends AbstractMessage {
}
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class SomeObject {
  private int val;
  public SomeObject(){
  }
  public SomeObject(int val){
    this.val = val;
  }
  public int getVal(){
    return val;
  }
  @Override
  public String toString(){
    return "SomeObject[val="+val+"]";
  }
}
origin: jMonkeyEngine/jmonkeyengine

/**
 *  Interface implemented by all network messages.
 *
 *  @version   $Revision$
 *  @author    Paul Speed
 */
@Serializable()
public interface Message
{
  /**
   *  Sets this message to 'reliable' or not and returns this
   *  message.
   */
  public Message setReliable(boolean f);
  
  /**
   *  Indicates which way an outgoing message should be sent
   *  or which way an incoming message was sent.
   */
  public boolean isReliable();
}

origin: jMonkeyEngine/jmonkeyengine

/**
 * Sent to expose RMI interfaces on the local client to other clients.
 * @author Kirill Vainer
 */
@Serializable
public class RemoteObjectDefMessage extends AbstractMessage {

  public ObjectDef[] objects;
  
  public RemoteObjectDefMessage(){
    super(true);
  }

  @Override
  public String toString(){
    StringBuilder sb = new StringBuilder();
    sb.append("RemoteObjectDefMessage[\n");
    for (ObjectDef def : objects){
      sb.append("\t").append(def).append("\n");
    }
    sb.append("]");
    return sb.toString();
  }

}

origin: jMonkeyEngine/jmonkeyengine

/**
 * CompressedMessage is a base class for all messages that
 *  compress others.
 *
 * @author Lars Wesselius
 */
@Serializable()
public class CompressedMessage extends AbstractMessage {
  private Message message;

  public CompressedMessage() { }

  public CompressedMessage(Message msg) {
    this.message = msg;
  }

  public void setMessage(Message message) {
    this.message = message;
  }

  public Message getMessage() {
    return message;
  }
}

origin: jMonkeyEngine/jmonkeyengine

/**
 * Contains the return value for a remote method invocation, sent as a response
 * to a {@link RemoteMethodCallMessage} with a non-zero invocationID.
 *
 * @author Kirill Vainer.
 */
@Serializable
public class RemoteMethodReturnMessage extends AbstractMessage {

  public RemoteMethodReturnMessage(){
    super(true);
  }

  /**
   * Invocation ID that was set in the {@link RemoteMethodCallMessage}.
   */
  public short invocationID;

  /**
   * The return value, could be null.
   */
  public Object retVal;


  @Override
  public String toString(){
    return "RemoteMethodReturnMessage[ID="+invocationID+", Value="+retVal.toString()+"]";
  }
}

origin: jMonkeyEngine/jmonkeyengine

@Serializable
public class ObjectDef {
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class ChatMessage extends AbstractMessage {
origin: jMonkeyEngine/jmonkeyengine

@Serializable()
public class ZIPCompressedMessage extends CompressedMessage {
  private static int compressionLevel = 6;
origin: jMonkeyEngine/jmonkeyengine

@Serializable()
public class ChannelInfoMessage extends AbstractMessage {
  private long id;
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static final class Registration {
origin: jMonkeyEngine/jmonkeyengine

@Serializable()
public abstract class AbstractMessage implements Message
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public static class TestSerializationMessage extends AbstractMessage {
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public class RemoteMethodCallMessage extends AbstractMessage {
origin: jMonkeyEngine/jmonkeyengine

@Serializable()
public class DisconnectMessage extends AbstractMessage {
origin: jMonkeyEngine/jmonkeyengine

@Serializable
public class RpcCallMessage extends AbstractMessage {
com.jme3.network.serializingSerializable<init>

Popular methods of Serializable

  • id
  • serializer

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now