package org.hibernate.test;
import java.io.Serializable;
import java.util.Comparator;
public class StringComparator implements Comparator, Serializable {
public int compare(Object o1, Objec
package mypack;
import java.io.Serializable;
public class ShoppingCartItem implements Serializable{
Object item;
int quantity;
public ShoppingCartItem(Object anItem) {
item
``counting_iterator`` adapts an object by adding an ``operator*`` that
returns the current value of the object. All other iterator operations
are forwarded to the adapted object.
// Copyright David Abrahams 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#inclu