ListMulti

General

Category
Free
Tag
Data Structures
License
N/A
Min SDK
14 (Android 4.0–4.0.2 Ice Cream Sandwich)
Registered
Dec 18, 2016
Favorites
0
Link
https://github.com/10uroi/ListMulti
See also
Marray
Solid
SparseBitSet
rtree
ActionQueue

Additional

Language
Java
Version
1.0.0 (Dec 14, 2016)
Created
Dec 14, 2016
Updated
Jan 3, 2017
Owner
Onur Ciner (10uroi)
Contributor
Onur Ciner (10uroi)
1
Activity
Badge
Generate
Download
Source code

Commercial

ListMulti

More than one type of object field list type.

##Installation

To use the library, first include it your project using Gradle

    allprojects {
        repositories {
            jcenter()
            maven { url "https://jitpack.io" }
        }
    }

and:

    dependencies {
            compile 'com.github.10uroi:ListMulti:1.0.0'
    }

##How to use

MultiList

MultiList<String,Integer> multiList = new MultiList<>();

multiList.add("Onur",123);
multiList.add("Ciner",456);

multiList.getOneData(0); //Onur
multiList.getTwoData(0); //123

multiList.getOneData(1); //Ciner
multiList.getTwoData(1); //456

multiList.size(); //2

multiList.getOneArrayList(); // ArrayList<String>   -> Onur, Ciner
multiList.getTwoArrayList(); // ArrayList<Integer>  -> 123, 456

MultiListThree

MultiListThree<String,Integer,Boolean> multiList = new MultiListThree<>();

multiList.add("Onur",123,true);
multiList.add("Ciner",456,false);

multiList.getOneData(0);    //Onur
multiList.getTwoData(0);    //123
multiList.getThreeData(0);  //true

multiList.getOneData(1);    //Ciner
multiList.getTwoData(1);    //456
multiList.getThreeData(1);  //false

multiList.size(); //2

multiList.getOneArrayList();    // ArrayList<String>   -> Onur, Ciner
multiList.getTwoArrayList();    // ArrayList<Integer>  -> 123, 456
multiList.getThreeArrayList();  // ArrayList<Boolean> -> true, false

MultiListFour

MultiListFour<String,Integer,Boolean, Object> multiList = new MultiListFour<>();

multiList.add("Onur",123,true, address1);
multiList.add("Ciner",456,false,address2);

multiList.getOneData(0);    //Onur
multiList.getTwoData(0);    //123
multiList.getThreeData(0);  //true
multiList.getFourData(0);  //address1

multiList.getOneData(1);    //Ciner
multiList.getTwoData(1);    //456
multiList.getThreeData(1);  //false
multiList.getFourData(1);  //address2

multiList.size(); //2

multiList.getOneArrayList();    // ArrayList<String>   -> Onur, Ciner
multiList.getTwoArrayList();    // ArrayList<Integer>  -> 123, 456
multiList.getThreeArrayList();  // ArrayList<Boolean> -> true, false
multiList.getFourArrayList();  // ArrayList<Object> -> address1, address2

MultiListFive and MultiListSix -> Supports five and six parameters