def __init__(self, v, tp=None): if tp is None: tp = _getDefaultTypeName(v) if isinstance(tp, _jclass._JavaClass): tp = tp.__javaclass__.getName() self.typeName = tp self._value = _jpype.convertToJValue(tp, v)
def __init__(self, v): if v is not None: self._value = _jpype.convertToJValue(self.typeName, v) else: self._value = None