org.openmuc.core.obis
Class Util

java.lang.Object
  extended by org.openmuc.core.obis.Util

public class Util
extends java.lang.Object


Constructor Summary
Util()
           
 
Method Summary
static int containsChar(java.lang.String str, char chr)
          Does String str contains char chr?
static
<T> boolean
isElement(java.util.Vector<T> list, T elem)
          Check if an element equal to "elem" is part of the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

containsChar

public static int containsChar(java.lang.String str,
                               char chr)
Does String str contains char chr?

Parameters:
str -
chr -

isElement

public static <T> boolean isElement(java.util.Vector<T> list,
                                    T elem)
Check if an element equal to "elem" is part of the list

Type Parameters:
T -
Parameters:
list -
elem -
Returns:
true if elem is part of list, else false