org.tastybug.bugwerk.bugtrail.widget.util
Class TicketSizeCalculator

java.lang.Object
  extended by org.tastybug.bugwerk.bugtrail.widget.util.TicketSizeCalculator

public class TicketSizeCalculator
extends Object

This helper class calculates the size (in bytes) of Ticket instances.


Copyright 2006 Philipp Bartsch.
www.tastybug.com

Created on Feb 8, 2006

Author:
Philipp Bartsch, philipp.bartsch{at}tastybug{dot}com

Constructor Summary
TicketSizeCalculator()
           
 
Method Summary
static int getTicketSizeInByte(Ticket ticket)
          Returns the length in bytes of the given ticket, considering the all properties and attachments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicketSizeCalculator

public TicketSizeCalculator()
Method Detail

getTicketSizeInByte

public static int getTicketSizeInByte(Ticket ticket)
Returns the length in bytes of the given ticket, considering the all properties and attachments.

Parameters:
ticket - the ticket that is to be measured
Returns:
the length in bytes


Copyright © 2006-2007 TastyBug Development. All Rights Reserved.