class PackageItem {

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PackageItem)) {
            return false;
        }

        PackageItem aPackage = (PackageItem) o;

        if (!caption.equals(aPackage.caption)) {
            return false;
        }

        return packageName.equals(aPackage.packageName) && caption.equals(aPackage.caption);
    }

    public  PackageItem();
    public  PackageItem(final String packageName,
                       final String caption);

}