Changeset 8727


Ignore:
Timestamp:
03/06/05 19:32:30 (16 years ago)
Author:
piso
Message:

size(), copy()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/EventSequence.java

    r8704 r8727  
    33 *
    44 * Copyright (C) 2005 Peter Graves
    5  * $Id: EventSequence.java,v 1.1 2005-03-04 18:57:23 piso Exp $
     5 * $Id: EventSequence.java,v 1.2 2005-03-06 19:32:30 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3131    {
    3232        events = new ArrayList();
     33    }
     34
     35    public int size()
     36    {
     37        return events.size();
     38    }
     39
     40    public EventSequence copy()
     41    {
     42        EventSequence copy = new EventSequence();
     43        for (int i = 0; i < events.size(); i++)
     44            copy.events.add(events.get(i));
     45        return copy;
    3346    }
    3447
Note: See TracChangeset for help on using the changeset viewer.