Android Open Source - UniversalLoader U L Key






From Project

Back to project page UniversalLoader.

License

The source code is released under:

Apache License

If you think the Android project UniversalLoader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.michaelflisar.universalloader.data.main;
//from   ww w.  java 2s .  com

public class ULKey
{
    protected String key = null;
    protected String subKey = null;

    // -----------------
    // constructors
    // -----------------

    public ULKey(String key)
    {
        this.key = key;
    }
    
    public ULKey(String key, String subKey)
    {
        this.key = key;
        this.subKey = subKey;
    }

    public ULKey(Class<?> c)
    {
        key = c.getName();
    }
    
    public ULKey getSubKey(String subKey)
    {
        return new ULKey(key, (this.subKey != null ? this.subKey + "|" : "") + subKey);
    }
    
    public boolean isSubKey(ULKey key)
    {
        if (key.key.equals(this.key))
            return true;
        return false;
    }

    // -----------------
    // functions
    // -----------------

    public String toString()
    {
        return key + (subKey != null ? "|" + subKey : "");
    }

    @Override
    public int hashCode()
    {
        return toString().hashCode();
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final ULKey other = (ULKey) obj;

        return toString().equals(other.toString());
    }

}




Java Source Code List

com.michaelflisar.universalloader.ULActivity.java
com.michaelflisar.universalloader.ULFragmentImpl.java
com.michaelflisar.universalloader.UniversalLoader.java
com.michaelflisar.universalloader.data.fragments.ULFragmentLoaderData.java
com.michaelflisar.universalloader.data.fragments.ULFragmentLoaders.java
com.michaelflisar.universalloader.data.main.ULFragmentKey.java
com.michaelflisar.universalloader.data.main.ULKey.java
com.michaelflisar.universalloader.data.main.ULLoaderDataManager.java
com.michaelflisar.universalloader.data.main.ULResultManager.java
com.michaelflisar.universalloader.data.main.ULResult.java
com.michaelflisar.universalloader.data.main.ULTaskManager.java
com.michaelflisar.universalloader.data.main.ULTask.java
com.michaelflisar.universalloader.demo.Helper.java
com.michaelflisar.universalloader.demo.TestActivity.java
com.michaelflisar.universalloader.demo.TestLoaderFragment.java
com.michaelflisar.universalloader.fragments.ULDialogFragment.java
com.michaelflisar.universalloader.fragments.ULFragment.java
com.michaelflisar.universalloader.helper.ULDebugger.java
com.michaelflisar.universalloader.helper.ULHelper.java
com.michaelflisar.universalloader.interfaces.IFragmentImplParent.java
com.michaelflisar.universalloader.interfaces.IUniversalLoaderListener.java
com.michaelflisar.universalloader.interfaces.IUniversalLoaderProvider.java