Android Open Source - osu-taste-portable Beatmap






From Project

Back to project page osu-taste-portable.

License

The source code is released under:

Apache License

If you think the Android project osu-taste-portable 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.dgsrz.osuTaste.model;
/*from www  .jav a 2  s. co  m*/
import android.text.TextUtils;

/**
 * @author dgsrz (dgsrz@vip.qq.com)
 */
public class Beatmap {

    public int mId;

    public String mFileName;

    public String mDirectory;

    public String mTitle;

    public String mDifficulty;

    public String mArtist;

    public String mMapper;

    public Beatmap(final int id, final String fileName, final String directory, final String title,
                   final String difficulty, final String artist, final String mapper) {
        mId = id;
        mFileName = fileName;
        mDirectory = directory;
        mTitle = title;
        mDifficulty = difficulty;
        mArtist = artist;
        mMapper = mapper;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (mFileName == null ? 0 : mFileName.hashCode());
        result = prime * result + (mDirectory == null ? 0 : mDirectory.hashCode());
        result = prime * result + (mTitle == null ? 0 : mTitle.hashCode());
        result = prime * result + (mDifficulty == null ? 0 : mDifficulty.hashCode());
        result = prime * result + (mArtist == null ? 0 : mArtist.hashCode());
        result = prime * result + (mMapper == null ? 0 : mMapper.hashCode());
        result = prime * result + mId;
        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Beatmap other = (Beatmap)obj;
        if (mId != other.mId) {
            return false;
        }
        if (!TextUtils.equals(mFileName, other.mFileName)) {
            return false;
        }
        if (!TextUtils.equals(mDirectory, other.mDirectory)) {
            return false;
        }
        if (!TextUtils.equals(mTitle, other.mTitle)) {
            return false;
        }
        if (!TextUtils.equals(mDifficulty, other.mDifficulty)) {
            return false;
        }
        if (!TextUtils.equals(mArtist, other.mArtist)) {
            return false;
        }
        if (!TextUtils.equals(mMapper, other.mMapper)) {
            return false;
        }
        return true;
    }

}




Java Source Code List

com.dgsrz.osuTaste.activities.BaseActivity.java
com.dgsrz.osuTaste.activities.HomeActivity.java
com.dgsrz.osuTaste.activities.SearchActivity.java
com.dgsrz.osuTaste.activities.SettingsActivity.java
com.dgsrz.osuTaste.activities.SplashActivity.java
com.dgsrz.osuTaste.adapters.PagerAdapter.java
com.dgsrz.osuTaste.beatmap.BeatmapParser.java
com.dgsrz.osuTaste.beatmap.HitObjectType.java
com.dgsrz.osuTaste.beatmap.HitObject.java
com.dgsrz.osuTaste.beatmap.InheritedTimingPoint.java
com.dgsrz.osuTaste.beatmap.TimingPoint.java
com.dgsrz.osuTaste.exception.BeatmapParsingException.java
com.dgsrz.osuTaste.fragments.AlbumFragment.java
com.dgsrz.osuTaste.loaders.BeatmapLoader.java
com.dgsrz.osuTaste.loaders.WrappedAsyncTaskLoader.java
com.dgsrz.osuTaste.model.Beatmap.java
com.dgsrz.osuTaste.provider.BeatmapStore.java
com.dgsrz.osuTaste.services.BassInterface.java
com.dgsrz.osuTaste.services.BassService.java
com.dgsrz.osuTaste.services.SampleProvider.java
com.dgsrz.osuTaste.services.StreamProvider.java
com.dgsrz.osuTaste.utils.ApplicationUtils.java
com.dgsrz.osuTaste.utils.Lists.java
com.dgsrz.osuTaste.utils.MusicUtils.java
com.dgsrz.osuTaste.utils.NavUtils.java
com.dgsrz.osuTaste.utils.PreferenceUtils.java
com.un4seen.bass.BASS.java