Skip navigation links
EDB/Java
jp.ac.tokushima_u.db.utlf.content

Class UArray

    • Constructor Detail

      • UArray

        public UArray()
    • Method Detail

      • getObjectList

        public <T extends UObjectList<T> getObjectList(Class<T> clas)
      • getNodeObjectList

        public <T extends UObjectList<T> getNodeObjectList(Class<T> clas,
                                                             UTLFResolver res)
        Get Node Object List. 型Tのオブジェクトをリスト化する. 要素, 要素がDictの場合にはNKeyで示される要素, 要素がArrayの場合にはそのArray中の要素, 要素がReferenceの場合にはリファレンスを展開した要素をリストとして作成する.
        Type Parameters:
        T - class
        Parameters:
        clas - class specifier
        res - resolver
        Returns:
        object list.
      • getNodeObjectList

        public <T extends UObjectList<T> getNodeObjectList(Class<T> clas)
      • hasObject

        public boolean hasObject(UObject o)
        Check object posession.
        Parameters:
        o - Object
        Returns:
        has object.
      • addObject

        public boolean addObject(UObject o,
                                 boolean unique)
        Add object to array
        Parameters:
        o - Object
        unique - keep uniqueness
        Returns:
        list is modified.
      • addObject

        public boolean addObject(UObject o)
        Add object to array
        Parameters:
        o - Object
        Returns:
        list is modified.
      • addObject

        public boolean addObject(int idx,
                                 UObject o)
        Add object to array
        Parameters:
        idx - Index
        o - Object
        Returns:
        list is modified.
      • merge

        public boolean merge(UArray ua,
                             boolean unique)
        Merge arrays
        Parameters:
        ua - UArray
        unique - keep uniqueness
        Returns:
        list is modified.
      • getObject

        public UObject getObject(int idx)
      • removeObject

        public UObject removeObject(int idx)
      • removeObject

        public boolean removeObject(UObject o)
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • shrinkNullKeyedDict

        public void shrinkNullKeyedDict()
      • equivalentTo

        public boolean equivalentTo(UArray o)
      • beUnique

        public UArray beUnique()
        Make new Array which contains unique objects.
        Returns:
        new UArray.
      • enDict

        public UDict enDict(UPath path,
                            boolean unique)
                     throws UTLFException
        Make new UDict. All objects contains this array must be UDict.
        Parameters:
        path - path of key (must point UString or UArray of UString).
        unique - requreness to be unique.
        Returns:
        a UDict.
        Throws:
        UTLFException - UDictでないオブジェクトが存在する場合.
      • enDict

        public UDict enDict(UPath path)
                     throws UTLFException
        Make new UDict. All objects contains this array must be UDict.
        Parameters:
        path - Path
        Returns:
        a UDict.
        Throws:
        UTLFException - UDictでないオブジェクトが存在する場合.
      • numberOfElements

        public int numberOfElements()
        get Number of Elements under this objects.
        Overrides:
        numberOfElements in class UInstance
        Returns:
        number of elements
EDB/Java

EDB Working Group at Tue Jun 10 17:08:59 JST 2025