org.enhydra.barracuda.core.util.data
Class Collections

java.lang.Object
  |
  +--org.enhydra.barracuda.core.util.data.Collections

public class Collections
extends java.lang.Object

Collections utilities


Constructor Summary
Collections()
           
 
Method Summary
protected static void print(org.apache.log4j.Category logger, java.io.OutputStream out, java.lang.String s)
           
static void printStackTrace(java.util.List list)
          utility method to recursively print the stack trace for a List.
static void printStackTrace(java.util.List list, org.apache.log4j.Category logger)
          utility method to recursively print the stack trace for a List.
static void printStackTrace(java.util.List list, int depth, org.apache.log4j.Category logger, java.io.OutputStream out)
          utility method to recursively print the stack trace for a List Bounds:
If depth < 0, the method returns immediately
static void printStackTrace(java.util.List list, java.io.OutputStream out)
          utility method to recursively print the stack trace for a List.
static void printStackTrace(java.util.Map map)
          utility method to recursively print the stack trace for a Map.
static void printStackTrace(java.util.Map map, org.apache.log4j.Category logger)
          utility method to recursively print the stack trace for a Map.
static void printStackTrace(java.util.Map map, int depth, org.apache.log4j.Category logger, java.io.OutputStream out)
          utility method to recursively print the stack trace for a Map Map Specification: depth < 0 will be remapped to 0 depth > 25 will be remapped to 25 Passing in a null value for the output stream will cause all the necessary output information to be generated, but nothing will actually print anywhere.
static void printStackTrace(java.util.Map map, java.io.OutputStream out)
          utility method to recursively print the stack trace for a Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collections

public Collections()
Method Detail

printStackTrace

public static void printStackTrace(java.util.Map map)

utility method to recursively print the stack trace for a Map.

Parameters:
map - the Map we wish to dump

printStackTrace

public static void printStackTrace(java.util.Map map,
                                   org.apache.log4j.Category logger)

utility method to recursively print the stack trace for a Map.

Parameters:
map - the Map we wish to dump
logger - the Category we wish to dump it to

printStackTrace

public static void printStackTrace(java.util.Map map,
                                   java.io.OutputStream out)

utility method to recursively print the stack trace for a Map.

Parameters:
map - the Map we wish to dump
out - the output stream we wish to dump it to

printStackTrace

public static void printStackTrace(java.util.Map map,
                                   int depth,
                                   org.apache.log4j.Category logger,
                                   java.io.OutputStream out)

utility method to recursively print the stack trace for a Map

Map Specification:

  1. depth < 0 will be remapped to 0
  2. depth > 25 will be remapped to 25

Passing in a null value for the output stream will cause all the necessary output information to be generated, but nothing will actually print anywhere. This is useful for bounds testing when you want to make sure the routine is working but you don't really care about the output.

Parameters:
map - the Map we wish to dump
logger - the Category we wish to dump it to (may be null)
out - OutputStream to print to (only used if logger is null)

printStackTrace

public static void printStackTrace(java.util.List list)

utility method to recursively print the stack trace for a List.


printStackTrace

public static void printStackTrace(java.util.List list,
                                   org.apache.log4j.Category logger)

utility method to recursively print the stack trace for a List.

Parameters:
logger - the Category we wish to dump it to

printStackTrace

public static void printStackTrace(java.util.List list,
                                   java.io.OutputStream out)

utility method to recursively print the stack trace for a List.

Parameters:
out - the output stream we wish to dump it to

printStackTrace

public static void printStackTrace(java.util.List list,
                                   int depth,
                                   org.apache.log4j.Category logger,
                                   java.io.OutputStream out)

utility method to recursively print the stack trace for a List

Bounds:
If depth < 0, the method returns immediately

Parameters:
logger - the Category we wish to dump it to (may be null)
out - OutputStream to print to (only used if logger is null)

print

protected static void print(org.apache.log4j.Category logger,
                            java.io.OutputStream out,
                            java.lang.String s)


Copyright © 2001 Enhydra.org