⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nodedata.java

📁 java1.6众多例子参考
💻 JAVA
字号:
/* * @(#)NodeData.java	1.4 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.orbutil.graph ;/** Data about a node in a graph.  */public class NodeData {    private boolean visited ;    private boolean root ;    public NodeData()    {	clear() ;    }    public void clear()    {	this.visited = false ;	this.root = true ;    }    /** Return whether this node has been visited in a traversal.     * Note that we only support a single traversal at a time.     */    boolean isVisited()     {	return visited ;    }    void visited()    {	visited = true ;    }    /** Return whether this node is a root.     */    boolean isRoot()     {	return root ;    }    void notRoot()    {	root = false ;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -