FileDocCategorySizeDatePackage
ContextList.javaAPI DocExample669Thu Nov 08 00:22:50 GMT 2001com.ora.rmibook.chapter15

ContextList.java

package com.ora.rmibook.chapter15;


import java.util.*;
import java.io.*;


public class ContextList extends SerializableList {
    private ContextList() {/* here so we can deserialize */
    }

    public ContextList(Collection components) {
        super (components);
    }

    protected boolean containerIsOfSameType(Object object) {
        return (object instanceof ContextList);
    }

    protected boolean equalObjects(Object firstObject, Object secondObject) {
        Context firstContext = (Context) firstObject;
        Context secondContext = (Context) secondObject;

        return firstContext.equals(secondContext);
    }
}