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. package com.sun.corba.se.impl.orbutil.closure ;
  8. import com.sun.corba.se.spi.orbutil.closure.Closure ;
  9. public class Constant implements Closure {
  10. private Object value ;
  11. public Constant( Object value )
  12. {
  13. this.value = value ;
  14. }
  15. public Object evaluate()
  16. {
  17. return value ;
  18. }
  19. }