2012年8月8日 星期三

Java note

@link:
/** 
  *亂說一同
  * @link package.class #getValue 
  * @param   
  * @see #getValue 
  */ @link是一個連接標記,在doc裡會多增加一個See Also(默認的類是自己) #member label就是把@see獲取到。你可以試一下就明白了
http://topic.csdn.net/t/20031222/14/2589902.html


@SuppressWarnings

hiding to suppress warnings relative to locals that hide variable

http://www.thebuzzmedia.com/supported-values-for-suppresswarnings/ 




java.lang.Object
  extended by IntentService
      extended by com.google.android.gcm.GCMBaseIntentService
Field Summary
static java.lang.StringTAG 
public class GCMIntentService extends GCMBaseIntentService { // @SuppressWarnings("hiding") private static final String TAG = "GCMIntentService"; public GCMIntentService() { super("SENDER_ID"); }


 protected GCMBaseIntentService(String senderId) {
        // name is used as base name for threads, etc.
        super("GCMIntentService-" + senderId + "-" + (++sCounter));
        mSenderId = senderId;
    }
Constructor Summary
protectedGCMBaseIntentService()            Constructor that does not set a sender id, useful when the sender id is context-specific.
protectedGCMBaseIntentService(java.lang.String... senderIds)            Constructor used when the sender id(s) is fixed.




沒有留言:

張貼留言