com.sun.j3d.utils.geometry.compression
Class HuffmanNode.TagLengthComparator

java.lang.Object
  extended by com.sun.j3d.utils.geometry.compression.HuffmanNode.TagLengthComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
HuffmanNode

static class HuffmanNode.TagLengthComparator
extends java.lang.Object
implements java.util.Comparator

Sorts nodes in descending order by tag bit length.


Constructor Summary
HuffmanNode.TagLengthComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

HuffmanNode.TagLengthComparator

HuffmanNode.TagLengthComparator()
Method Detail

compare

public final int compare(java.lang.Object o1,
                         java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.