Coverage Report - org.jaudiotagger.logging.Hex
 
Classes in this File Line Coverage Branch Coverage Complexity
Hex
33%
1/3
N/A
1
 
 1  
 package org.jaudiotagger.logging;
 2  
 
 3  
 /**
 4  
  * Display as hex
 5  
  */
 6  0
 public class Hex
 7  
 {
 8  
     /**
 9  
      * Display as hex
 10  
      *
 11  
      * @param value
 12  
      * @return
 13  
      */
 14  
     public static String asHex(long value)
 15  
     {
 16  237
         return "0x" + Long.toHexString(value);
 17  
     }
 18  
 
 19  
     /**
 20  
      * Display as hex
 21  
      *
 22  
      * @param value
 23  
      * @return
 24  
      */
 25  
     public static String asHex(byte value)
 26  
     {
 27  0
         return "0x" + Integer.toHexString(value);
 28  
     }
 29  
 }