Changeset 2023


Ignore:
Timestamp:
Jul 16, 2006, 12:22:23 AM (14 years ago)
Author:
orlov
Message:
  • assignUnsafe() method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/org/refal/plus/Result.java

    r1943 r2023  
    55package org.refal.plus;
    66
    7 public class Result
     7public final class Result
    88{
    99    private Expr expr;
    1010
    1111    public Result ()
    12     {
    13         expr = null;
    14     }
     12    {}
    1513
    1614    public void assign (Expr e)
    1715    {
    1816        expr = e;
    19     }
    20    
    21     public void assign (Object[] arr)
    22     {
    23         expr = new Expr(arr);
    2417    }
    2518
     
    2922    }
    3023
     24    public void assign (Object[] arr)
     25    {
     26        expr = Expr.fromArray(arr);
     27    }
     28
     29    /*
     30     * Do not copy an array.  Use with caution!
     31     */
     32    public void assignUnsafe (Object[] arr)
     33    {
     34        expr = Expr.fromArrayUnsafe(arr);
     35    }
     36
    3137    public Expr getExpr ()
    3238    {
Note: See TracChangeset for help on using the changeset viewer.