Skip to content

Instantly share code, notes, and snippets.

@legendmohe
Created July 12, 2017 04:55
Show Gist options
  • Save legendmohe/8ea6c3b6fa8d09312c75aeb542e2e10c to your computer and use it in GitHub Desktop.
Save legendmohe/8ea6c3b6fa8d09312c75aeb542e2e10c to your computer and use it in GitHub Desktop.
Message Object for Java Handler
import java.util.concurrent.ScheduledFuture;
/**
* Created by legendmohe on 2017/7/7.
*/
public class Message {
public int what;
public int arg1;
public int arg2;
public Object obj;
ScheduledFuture<?> mScheduledFuture;
public static Message newMessage() {
return new Message();
}
public static Message obtain() {
return new Message();
}
@Override
public String toString() {
return "Message{" +
"what=" + what +
", arg1=" + arg1 +
", arg2=" + arg2 +
", obj=" + obj +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment