MSortedInteger.java
Go to the documentation of this file.
00001 /*
00002  * (c) copyright 2008, Technische Universitaet Graz and Technische Universitaet Wien
00003  *
00004  * This file is part of jdiagengine.
00005  *
00006  * jdiagengine is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * jdiagengine is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * You should have received a copy of the GNU General Public License
00016  * along with jdiagengine. If not, see <http://www.gnu.org/licenses/>.
00017  *
00018  * Authors: Joerg Weber, Franz Wotawa
00019  * Contact: jweber@ist.tugraz.at (preferred), or fwotawa@ist.tugraz.at
00020  *
00021  */
00022 
00023 
00024 package utils;
00025 
00026 import java.util.*;
00027 
00028 public class MSortedInteger extends Object
00029 implements MSortedElementInterface 
00030 {
00031     protected int value;
00032 
00033     public MSortedInteger () {
00034         this.value = 0;
00035     }
00036 
00037     public MSortedInteger (int value) {
00038         this.value = value;
00039     }
00040 
00041     public int intValue() {
00042         return value;
00043     }
00044 
00045     public boolean greater(Object element) {
00046         MSortedInteger i = (MSortedInteger)element;
00047 
00048         if (this.intValue() > (i.intValue())) {
00049             return true;
00050         } else {
00051             return false;
00052         }
00053     }
00054 
00055     public String toString() {
00056         return (new Integer(value)).toString();
00057     }
00058 }


tug_ist_diagnosis_engine
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:16