24 November

Useful Abstract Methods

This is somewhat older and useful set of code, but i can't remember where it was... may be when i was using ehCache for data pre-loading in says at MIT.
  /**  
    * Get Object Type  
    *  
    * @return  
    */  
   public Class getObjectType() {  
     return (this != null ? this.getClass() : CacheManagerEventListener.class);  
   }  

No comments:

Post a Comment

Beyond Toughness: Why Your Car's Brain Needs AEC-Q100 AND ASIL-B

AEC-Q100 vs. ASIL-B: Quality Meets Safety In the era of autonomous driving and electric vehicles, the electron...