1
/*******************************************************************************
2
* Copyright (c) 2007, 2008 Intel Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Intel Corporation - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.settings.model;
15
public final class CMacroEntry extends ACSettingEntry implements ICMacroEntry{
16
private String fValue;
18
public CMacroEntry(String name, String value, int flags) {
22
fValue = ""; //$NON-NLS-1$
26
public String getValue() {
30
public final int getKind() {
35
public boolean equals(Object other) {
36
if(!super.equals(other))
38
return fValue.equals(((CMacroEntry)other).fValue);
42
public int hashCode() {
43
return super.hashCode() + fValue.hashCode();
47
public boolean equalsByContents(ICSettingEntry entry) {
48
if(!super.equalsByContents(entry))
51
return fValue.equals(((CMacroEntry)entry).fValue);
55
protected String contentsToString() {
56
return new StringBuffer().append(fName).append('=').append(fValue).toString();