source: trunk/src_apollo/org/apollo/util/Mutable.java@ 349

Last change on this file since 349 was 349, checked in by bjn8, 16 years ago

Added y-pixel information to audio model.
Added Position-info retreival in quick text search util.
Added mutable primitive type
Linked track layout views now position tracks according to position in frame...a long coming modification.

File size: 471 bytes
Line 
1package org.apollo.util;
2
3/**
4 * Need mutable primitives? e.g. want call-by-reference in java?
5 *
6 * Privades mutable primitive classes.
7 *
8 * @author Brook Novak
9 *
10 */
11public class Mutable {
12
13 private static Mutable instance = new Mutable();
14 private Mutable() {}
15
16 public class Integer {
17 public Integer(int val) {
18 this.value = val;
19 }
20 public int value;
21 }
22
23 public static Integer createMutableInteger(int val) {
24 return instance.new Integer(val);
25 }
26
27}
Note: See TracBrowser for help on using the repository browser.