Created
July 12, 2017 04:55
-
-
Save legendmohe/8ea6c3b6fa8d09312c75aeb542e2e10c to your computer and use it in GitHub Desktop.
Message Object for Java Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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