Back to project page permission-explorer.
The source code is released under:
Copyright (C) 2012 Rui Gon?alves and Daniel Cibr?o Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
If you think the Android project permission-explorer 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 pt.up.fe.ssin.pexplorer.utils; /* w ww . j av a2 s.co m*/ public class Pair<T, U> { private T first; private U second; public Pair() { } public Pair(T first, U second) { this.first = first; this.second = second; } public T getFirst() { return first; } public void setFirst(T first) { this.first = first; } public U getSecond() { return second; } public void setSecond(U second) { this.second = second; } @Override public boolean equals(Object obj) { if (obj == null || getClass() != obj.getClass()) return false; Pair<?, ?> pair = (Pair<?, ?>) obj; return first.equals(pair.getFirst()) && second.equals(pair.getSecond()); } @Override public String toString() { return "[" + first + ", " + second + "]"; } }