Back to project page misound.
The source code is released under:
Apache License
If you think the Android project misound listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.xiaomi.mitv.soundbarapp.diagnosis.data; //from w w w. ja v a 2 s . co m /** * Created by chenxuetong on 7/9/14. */ public class Entry implements Comparable<Entry>{ private final Node mRoot; private Node mCurrentView; public Entry(Node root){ mRoot = root; mCurrentView = mRoot; } public Node getRoot(){ return mRoot; } public boolean isBegin(){ return mCurrentView==mRoot; } public boolean isEnd(){ return (mCurrentView!=null)?mCurrentView.getChildren().size()==0:true; } public Node pre(){ if(isBegin()) return null; return mCurrentView.getParent(); } @Override public int compareTo(Entry another) { return mRoot.compareTo(another.getRoot()); } }