KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > orbutil > closure > Constant


1 /*
2  * @(#)Constant.java 1.7 04/06/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.orbutil.closure ;
9
10 import com.sun.corba.se.spi.orbutil.closure.Closure ;
11
12 public class Constant implements Closure {
13     private Object JavaDoc value ;
14
15     public Constant( Object JavaDoc value )
16     {
17     this.value = value ;
18     }
19
20     public Object JavaDoc evaluate()
21     {
22     return value ;
23     }
24 }
25
26
Popular Tags