class ClassResult extends SearchResult {
	private final int access;
	private final String name;

	/**
	 * Constructs a class result.
	 *
	 * @param access
	 * 		Class modifiers.
	 * @param name
	 * 		Name of class.
	 */
	public ClassResult(int access, String name) {
		this.access = access;
		this.name = name;
	}

	/**
	 * @return Class modifiers.
	 */
	public int getAccess() {
		return access;
	}

	/**
	 * @return Name of class.
	 */
	public String getName() {
		return name;
	}

	@Override
	public String toString() {
		return name;
	}

	@Override
	public int hashCode() {
		return Objects.hash(name, access);
	}

	@Override
	public boolean equals(Object other) {<FILL_FUNCTION_BODY>}

	@Override
	public int compareTo(SearchResult other) {
		int ret = super.compareTo(other);
		if (ret == 0) {
			if (other instanceof ClassResult) {
				ClassResult otherResult = (ClassResult) other;
				return name.compareTo(otherResult.name);
			}
		}
		return ret;
	}
}

		if (other instanceof ClassResult)
			return hashCode() == other.hashCode();
		return false;
	
<methods>public non-sealed void <init>() ,public int compareTo(me.coley.recaf.search.SearchResult) ,public Context<?> getContext() ,public boolean isContextSimilar(me.coley.recaf.search.SearchResult) ,public void setContext(Context<?>) ,public java.lang.String toString() <variables>private Context<?> context