コード例 #1
0
	/**
	 * Index routing table changed.
	 *
	 * @param index the index
	 * @return true, if successful
	 */
	public boolean indexRoutingTableChanged(String index) {
		if (!state.routingTable().hasIndex(index) && !previousState.routingTable().hasIndex(index)) {
			return false;
		}
		if (state.routingTable().hasIndex(index) && previousState.routingTable().hasIndex(index)) {
			return state.routingTable().index(index) != previousState.routingTable().index(index);
		}
		return true;
	}
コード例 #2
0
	/**
	 * Routing table changed.
	 *
	 * @return true, if successful
	 */
	public boolean routingTableChanged() {
		return state.routingTable() != previousState.routingTable();
	}