DessertToppingFloorWaxDriver.java revision 135:c54e218333be
1234949Sbapt/* 2234949Sbapt * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 3234949Sbapt * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4234949Sbapt * 5234949Sbapt * This code is free software; you can redistribute it and/or modify it 6234949Sbapt * under the terms of the GNU General Public License version 2 only, as 7234949Sbapt * published by the Free Software Foundation. Oracle designates this 8234949Sbapt * particular file as subject to the "Classpath" exception as provided 9234949Sbapt * by Oracle in the LICENSE file that accompanied this code. 10234949Sbapt * 11234949Sbapt * This code is distributed in the hope that it will be useful, but WITHOUT 12234949Sbapt * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13234949Sbapt * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14234949Sbapt * version 2 for more details (a copy is included in the LICENSE file that 15234949Sbapt * accompanied this code). 16234949Sbapt * 17234949Sbapt * You should have received a copy of the GNU General Public License version 18234949Sbapt * 2 along with this work; if not, write to the Free Software Foundation, 19234949Sbapt * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20234949Sbapt * 21234949Sbapt * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22234949Sbapt * or visit www.oracle.com if you need additional information or have any 23234949Sbapt * questions. 24234949Sbapt */ 25234949Sbapt 26234949Sbaptpackage jdk.nashorn.test.models; 27234949Sbapt 28234949Sbaptpublic class DessertToppingFloorWaxDriver { 29234949Sbapt public void decorateDessert(DessertTopping dt) { 30234949Sbapt dt.pourOnDessert(); 31234949Sbapt } 32234949Sbapt 33234949Sbapt public void waxFloor(FloorWax fw) { 34234949Sbapt fw.shineUpTheFloor(); 35234949Sbapt } 36234949Sbapt} 37234949Sbapt