Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.xml.bind.v2.model.nav;
 /*    */ 
 /*    */ import java.lang.reflect.GenericArrayType;
 /*    */ import java.lang.reflect.Type;
 /*    */ 
 /*    */ final class GenericArrayTypeImpl
 /*    */   implements GenericArrayType
 /*    */ {
 /*    */   private Type genericComponentType;
/*    */ 
/*    */   GenericArrayTypeImpl(Type ct)
/*    */   {
/* 49 */     assert (ct != null);
/* 50 */     this.genericComponentType = ct;
/*    */   }
/*    */ 
/*    */   public Type getGenericComponentType()
/*    */   {
/* 62 */     return this.genericComponentType;
/*    */   }
/*    */ 
/*    */   public String toString() {
/* 66 */     Type componentType = getGenericComponentType();
/* 67 */     StringBuilder sb = new StringBuilder();
/*    */ 
/* 69 */     if ((componentType instanceof Class))
/* 70 */       sb.append(((Class)componentType).getName());
/*    */     else
/* 72 */       sb.append(componentType.toString());
/* 73 */     sb.append("[]");
/* 74 */     return sb.toString();
/*    */   }
/*    */ 
/*    */   public boolean equals(Object o)
/*    */   {
/* 79 */     if ((o instanceof GenericArrayType)) {
/* 80 */       GenericArrayType that = (GenericArrayType)o;
/*    */ 
/* 82 */       Type thatComponentType = that.getGenericComponentType();
/* 83 */       return this.genericComponentType.equals(thatComponentType);
/*    */     }
/* 85 */     return false;
/*    */   }
/*    */ 
/*    */   public int hashCode()
/*    */   {
/* 90 */     return this.genericComponentType.hashCode();
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     com.sun.xml.bind.v2.model.nav.GenericArrayTypeImpl
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X