PlatformFontSearchAttributes.java 1.13 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.fontengine.fontmanagement.platform;

public class PlatformFontSearchAttributes {
    private final String platformName;

    public PlatformFontSearchAttributes(String platformName) {
        if (platformName == null) {
            throw new NullPointerException("Platoform name can't be null");
        }
        this.platformName = platformName;
    }

    public String getPlatformName() {
        return this.platformName;
    }

    public int hashCode() {
        int prime = 31;
        int result = 1;
        result = 31 * result + (this.platformName == null ? 0 : this.platformName.hashCode());
        return result;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof PlatformFontSearchAttributes)) {
            return false;
        }
        PlatformFontSearchAttributes other = (PlatformFontSearchAttributes)obj;
        if (!this.platformName.equals(other.platformName)) {
            return false;
        }
        return true;
    }
}