| /******************************************************************************* |
| * Copyright (c) 2007, 2015 David Green and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * David Green - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.wikitext.core.parser.builder.event; |
| |
| import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder; |
| |
| import com.google.common.base.Objects; |
| |
| /** |
| * @since 2.4 |
| */ |
| public class HorizontalRuleEvent extends DocumentBuilderEvent { |
| |
| @Override |
| public void invoke(DocumentBuilder builder) { |
| builder.horizontalRule(); |
| } |
| |
| @Override |
| public int hashCode() { |
| return Objects.hashCode(HorizontalRuleEvent.class); |
| } |
| |
| @Override |
| public boolean equals(Object obj) { |
| if (obj == null) { |
| return false; |
| } |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof HorizontalRuleEvent)) { |
| return false; |
| } |
| return true; |
| } |
| |
| @Override |
| public String toString() { |
| return "horizontalRule()"; //$NON-NLS-1$ |
| } |
| } |