1 /** 2 * Copyright (c) 2008, http://www.snakeyaml.org 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.yaml.snakeyaml; 17 18 import java.util.LinkedHashMap; 19 20 public class EnumBean { 21 private int id; 22 private Suit suit; 23 private LinkedHashMap<Suit, Integer> map = new LinkedHashMap<Suit, Integer>(); 24 getMap()25 public LinkedHashMap<Suit, Integer> getMap() { 26 return map; 27 } 28 setMap(LinkedHashMap<Suit, Integer> map)29 public void setMap(LinkedHashMap<Suit, Integer> map) { 30 this.map = map; 31 } 32 getId()33 public int getId() { 34 return id; 35 } 36 setId(int id)37 public void setId(int id) { 38 this.id = id; 39 } 40 getSuit()41 public Suit getSuit() { 42 return suit; 43 } 44 setSuit(Suit suit)45 public void setSuit(Suit suit) { 46 this.suit = suit; 47 } 48 } 49