Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | package java.net;
import java.io.*;
import lejos.nxt.comm.*;
/**
*
* Communicates with a ServerProxy on the PC to provide a
* ServerSocket interface applications on the NXT.
*
*/
public class ServerSocket {
private int port;
private NXTConnection nxtc;
private final boolean isServer = true;
... | 386 |
github-java-corpus | 2,012 | package java.net;
import java.io.*;
import lejos.nxt.comm.*;
/**
* A version of NXTOutputStream that implements simple escape sequences
* so that it can indicate when a socket has been closed.
*
*/
class NXTSocketOutputStream extends OutputStream {
private byte[] buffer;
private int numBytes = 0;
private NXTCo... | 324 |
github-java-corpus | 2,012 | package java.util;
import java.io.IOException;
import java.io.PrintStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.BufferedWriter;
/**
* Properties class, used to store properties using a key,
* and retrieving properties with a key. String for both.
* Integrates well with... | 3,386 |
github-java-corpus | 2,012 | package java.util;
/*
* $Log: Queue.java,v $
* Revision 1.2 2005/11/23 17:46:45 mpscholz
* minor javadoc related changes
*
* Revision 1.1 2003/08/17 14:59:42 mpscholz
* enhanced Vector
* added Stack and Queue and associated exception classes
*
*/
/////////////////////////////////////////////////////////
/**
* A F... | 501 |
github-java-corpus | 2,012 | package java.util;
/*
* $Log: EmptyStackException.java,v $
* Revision 1.1 2003/08/17 14:59:42 mpscholz
* enhanced Vector
* added Stack and Queue and associated exception classes
*
*/
/////////////////////////////////////////////////////////
/**
* An exception thrown by some stack class methods
* to indicate that t... | 166 |
github-java-corpus | 2,012 | package java.util;
/**
* Class designed to manage Date and Time.
*
* Note: some methods are deprecated.
*
* @author Juan Antonio Brenha Moral
*/
/*
* TODO: DEVELOPER NOTES: Since 1.1 Sun has used Calendar for the setXXX() methods and has
* removed them from the Date class. I'm not sure why Juan ch... | 877 |
github-java-corpus | 2,012 | package java.util;
/**
* This class has been developed to parse strings with delimiters
*
* @author Juan Antonio Brenha Moral
*/
public class StringTokenizer implements Enumeration{
/**
* Delimiter string.
*/
private String _delimiter;
// private int total;
private int currentPosition;
priva... | 555 |
github-java-corpus | 2,012 | package java.util;
/*
* $Log: Stack.java,v $
* Revision 1.2 2005/11/23 17:46:45 mpscholz
* minor javadoc related changes
*
* Revision 1.1 2003/08/17 14:59:42 mpscholz
* enhanced Vector
* added Stack and Queue and associated exception classes
*
*/
/////////////////////////////////////////////////////////
/**
* A L... | 528 |
github-java-corpus | 2,012 | package java.util;
/**
* An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework
*
* @author Juan Antonio Brena Moral
* @author Sven Köhler
* @param <E> type of the elements
*/
public interface Iterator<E>
{
/**
*
* @return Returns true if the... | 145 |
github-java-corpus | 2,012 | package java.util;
/**
* An expandable array.
*
* @author Andre Nijholt
* @author Sven Köhler
* @param <E> type of the elements
*/
public class ArrayList<E> extends AbstractList<E> implements RandomAccess
{
private static final int INITIAL_CAPACITY = 10;
private static final int CAPACITY_INCREMENT... | 2,554 |
github-java-corpus | 2,012 | package java.util;
/**
* Represents a long set of bits.
*/
public class BitSet
{
byte[] iBytes;
public BitSet (int nbits)
{
iBytes = new byte[(nbits - 1) / 8 + 1];
}
public void clear (int n)
{
int idx = n / 8;
iBytes[idx] = (byte) ((iBytes[idx] & 0xFF) & ~(1 << (n%8)));
}
public v... | 198 |
github-java-corpus | 2,012 | package java.util;
/**
* This is non-public because it's not compatible with the JDK, yet.
*
* @author Sven Köhler
* @param <E> type of the elements
*/
abstract class AbstractCollection<E> implements Collection<E>
{
//TODO toString
public boolean addAll(Collection<? extends E> c)
{
boolean r = false;
fo... | 394 |
github-java-corpus | 2,012 | package java.util;
/**
* Pseudo-random number generation.
*/
public class Random
{
private int iPrevSeed, iSeed;
private boolean haveNextNextGaussian;
private double nextNextGaussian;
public Random (long seed)
{
iPrevSeed = 1;
iSeed = (int) seed;
}
public Random()
{
this(System.curre... | 609 |
github-java-corpus | 2,012 | package java.util;
/**
* This is non-public because it's not compatible with the JDK, yet.
*
* @author Sven Köhler
* @param <E> type of the elements
*/
abstract class AbstractList<E> extends AbstractCollection<E> implements List<E>
{
//TODO hashCode
public boolean contains(Object o)
{
return this.indexOf(... | 313 |
github-java-corpus | 2,012 | package java.util;
/**
* Every event in Java implement this interface
*
* @author Juan Antonio Brenha Moral
*/
public interface EventListener {
//Empty
}
| 36 |
github-java-corpus | 2,012 | package java.util;
/*
* $Log: EmptyQueueException.java,v $
* Revision 1.1 2003/08/17 14:59:42 mpscholz
* enhanced Vector
* added Stack and Queue and associated exception classes
*
*/
/////////////////////////////////////////////////////////
/**
* An exception thrown by some Queue class methods
* to indicate that t... | 166 |
github-java-corpus | 2,012 | package java.util;
/**
* NoSuchElementException is a Exception used with StringTokenizer
*
* @author Juan Antonio Brenha Moral
*/
public class NoSuchElementException extends RuntimeException {
public NoSuchElementException() {
super();
}
public NoSuchElementException(String s) {
supe... | 56 |
github-java-corpus | 2,012 | package java.util;
/**
* Exception thrown by Iterators if the underlying connection has been modified during the iteration.
* @author Sven Köhler
*/
public class ConcurrentModificationException extends RuntimeException
{
public ConcurrentModificationException()
{
super();
}
public ConcurrentModificationExcep... | 69 |
github-java-corpus | 2,012 | package java.util;
/**
* Maps keys to objects. It has a fixed-size table, so don't
* expect it to scale well.
*/
public class Hashtable
{
private static final int TABLE_SIZE = 32;
private Object[] iTable = new Object[TABLE_SIZE];
public Hashtable()
{
}
public synchronized Object get (Object aKey)
... | 1,052 |
github-java-corpus | 2,012 | package java.util;
/**
* Just some interface that something allowes efficient RandomAccess (for example a List).
* @author Sven Köhler
*/
public interface RandomAccess
{
//nothing, just an indicator interface
}
| 48 |
github-java-corpus | 2,012 | package java.util;
/**
* @author Sven Köhler
* @param <E> type of the elements
*/
public interface List<E> extends Collection<E>
{
void add(int index, E e);
boolean addAll(int index, Collection<? extends E> c);
E get(int index);
E set(int index, E e);
E remove(int index);
int indexOf(Object o);
int lastI... | 118 |
github-java-corpus | 2,012 | package java.util;
/*
* $Log: Vector.java,v $
* Revision 1.6 2005/11/23 17:46:45 mpscholz
* minor javadoc related changes
*
* Revision 1.5 2003/08/17 14:59:42 mpscholz
* enhanced Vector
* added Stack and Queue and associated exception classes
*
*/
/**
* A dynamic array.
*/
public class Vector
{
//private Obje... | 1,868 |
github-java-corpus | 2,012 | package java.util;
/**
* @author Sven Köhler
* @param <E> type of the elements
*/
public interface Collection<E> extends Iterable<E>
{
boolean add(E e);
boolean remove(Object o);
boolean addAll(Collection<? extends E> c);
boolean removeAll(Collection<?> c);
boolean retainAll(Collection<?> c);
boolean cont... | 124 |
github-java-corpus | 2,012 | package java.util;
/**
* Enumeration object allows you to go through
* collections one object at a time.
* @author BB
*
*/
public interface Enumeration {
public boolean hasMoreElements();
/**
*
* @return Returns Object which must be cast appropriately. Returns null if no more objects are avail... | 75 |
github-java-corpus | 2,012 | package java.util;
/**
* @author Sven Köhler
* @param <E> type of the elements
*/
public interface ListIterator<E> extends Iterator<E>
{
int nextIndex();
int previousIndex();
boolean hasPrevious();
E previous();
void add(E e);
void set(E e);
}
| 65 |
github-java-corpus | 2,012 | package java.awt;
import java.awt.geom.*;
/**
* Shape interface without getPathIterator methods
*
* @author Lawrie Griffiths
*
*/
public interface Shape {
/**
* Get the bounding Rectangle for the shape
*
* @return the bounding Rectangle
*/
public Rectangle getBounds();
/**
... | 561 |
github-java-corpus | 2,012 | package java.awt;
import java.awt.geom.*;
/**
* Represents a point in two dimensional space using integer co-ordinates
*
* @author Lawrie Griffiths
*
*/
public class Point extends Point2D {
/**
* The x coordinate of the point
*/
public int x;
/**
* The y coordinate of the point
*/
... | 656 |
github-java-corpus | 2,012 | package java.awt.geom;
import java.awt.Rectangle;
import java.awt.Shape;
/**
* An abstract base class for shapes based on a rectangular frame.
*
* @author Lawrie Griffiths
*
*/
public abstract class RectangularShape implements Shape, Cloneable {
/**
* Get the x coordinate as a double
*
... | 1,093 |
github-java-corpus | 2,012 | package java.awt.geom;
/**
* An abstract class for a Rectangle.
* Subclasses use float, double or integer coordinates.
*
* @author Lawrie Griffiths
*
*/
public abstract class Rectangle2D extends RectangularShape {
/**
* The bitmask that indicates that a point lies to the left of
* this... | 2,668 |
github-java-corpus | 2,012 | package java.awt.geom;
import java.awt.Rectangle;
import java.awt.Shape;
/**
* An abstract class representing a line in two dimensional space
*
* @author Lawrie Griffiths
*
*/
public abstract class Line2D implements Shape, Cloneable {
/**
* A line in 2D space using float coordinates
*/
publ... | 3,371 |
github-java-corpus | 2,012 | package java.awt.geom;
/**
* An abstract class for a point.
* Subclasses implement float, double and integer coordinates.
*
* @author Lawrie Griffiths
*
*/
public abstract class Point2D implements Cloneable {
/**
* A point with float coordinates.
*/
public static class Float extends Point2D {... | 1,593 |
github-java-corpus | 2,012 | package java.awt;
import java.awt.geom.*;
/**
* A rectangle with integer coordinates.
*
* @author Lawrie Griffiths
*
*/
public class Rectangle extends Rectangle2D implements Shape {
/**
* The height of the rectangle
*/
public int height;
/**
* The width of the rectangle
*/
public i... | 2,130 |
github-java-corpus | 2,012 | package java.lang;
public class ClassNotFoundException extends Exception
{
public ClassNotFoundException()
{
super();
}
public ClassNotFoundException(String message)
{
super(message);
}
}
| 36 |
github-java-corpus | 2,012 | package java.lang;
public class IndexOutOfBoundsException extends RuntimeException{
/**
* Constructs an <code>IndexOutOfBoundsException</code> with no
* detail message.
*/
public IndexOutOfBoundsException() {
super();
}
/**
* Constructs an <code>IndexOutOfBoundsException</... | 100 |
github-java-corpus | 2,012 | package java.lang;
/**
* A thread of execution (or task). Now handles priorities, daemon threads
* and interruptions.
*/
public class Thread implements Runnable
{
/**
* The minimum priority that a thread can have. The value is 1.
*/
public final static int MIN_PRIORITY = 1;
/**
* The priority that is ... | 1,072 |
github-java-corpus | 2,012 | package java.lang.annotation;
public enum ElementType
{
TYPE,
FIELD,
METHOD,
PARAMETER,
CONSTRUCTOR,
LOCAL_VARIABLE,
ANNOTATION_TYPE,
PACKAGE,
}
| 41 |
github-java-corpus | 2,012 | package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Documented
{
//nothing
}
| 39 |
github-java-corpus | 2,012 | package java.lang.annotation;
public enum RetentionPolicy
{
SOURCE,
CLASS,
RUNTIME,
}
| 22 |
github-java-corpus | 2,012 | package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Retention
{
RetentionPolicy value();
}
| 40 |
github-java-corpus | 2,012 | package java.lang.annotation;
public interface Annotation
{
Class<? extends Annotation> annotationType();
boolean equals(Object obj);
int hashCode();
String toString();
}
| 37 |
github-java-corpus | 2,012 | package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Target
{
ElementType[] value();
}
| 39 |
github-java-corpus | 2,012 | package java.lang;
public interface Comparable<T>
{
/**
* Compares this with another Object.
* Returns -1 if this object is smaller,
* 0 if both objects are equal and
* 1 if this object is bigger.
* @param o the object to compare with
* @return one of the values -1, 0, 1
*/
int compareTo(T o);
}
| 90 |
github-java-corpus | 2,012 | package java.lang;
/**
* An expandable string of characters. Actually not very expandable!
* 09/25/2001 added number formatting thanks to Martin E. Nielsen.
* You must ensure that the buffer is large enough to take the formatted
* number.
*<P>
* @author <a href="mailto:martin@egholm-nielsen.dk">Martin E. Nielsen... | 1,558 |
github-java-corpus | 2,012 | package java.lang;
public class Error extends Throwable
{
public Error() {
super();
}
public Error(String message) {
super(message);
}
}
| 33 |
github-java-corpus | 2,012 | package java.lang;
/**
* An expandable string of characters. Actually not very expandable!
* 09/25/2001 added number formatting thanks to Martin E. Nielsen.
* You must ensure that the buffer is large enough to take the formatted
* number.
*<P>
* @author <a href="mailto:martin@egholm-nielsen.dk">Martin E. Nielsen... | 1,575 |
github-java-corpus | 2,012 | package java.lang;
public class IllegalMonitorStateException extends RuntimeException
{
public IllegalMonitorStateException()
{
super();
}
public IllegalMonitorStateException(String message)
{
super(message);
}
}
| 42 |
github-java-corpus | 2,012 | package java.lang;
public class IllegalArgumentException extends RuntimeException{
/**
* Constructs an <code>IllegalArgumentException</code> with no
* detail message.
*/
public IllegalArgumentException() {
super();
}
/**
* Constructs an <code>IllegalArgumentException</code> with the
* ... | 94 |
github-java-corpus | 2,012 | package java.lang;
/**
* This interface is not functional. It's here
* to satisfy jikes.
*/
public interface Cloneable
{
//just an indicator interface
}
| 37 |
github-java-corpus | 2,012 |
package java.lang;
public class ArrayStoreException extends RuntimeException
{
}
| 15 |
github-java-corpus | 2,012 | package java.lang;
public final class Character implements Comparable<Character>
{
public static final int SIZE = 16;
public static final int MIN_RADIX = 2;
public static final int MAX_RADIX = 36;
public static final char MIN_VALUE = '\u0000';
public static final char MAX_VALUE = '\uFFFF';
public static fi... | 2,055 |
github-java-corpus | 2,012 | package java.lang;
/**
* Minimal Double implementation.
*
* @author bb
* @author Sven Köhler
*/
public final class Double extends Number
{
public static final double POSITIVE_INFINITY = 1.0d / 0.0d;
public static final double NEGATIVE_INFINITY = -1.0d / 0.0d;
public static final double NaN = 0.0d ... | 1,596 |
github-java-corpus | 2,012 | package java.lang;
public class IllegalStateException extends RuntimeException
{
public IllegalStateException()
{
super();
}
public IllegalStateException(String message)
{
super(message);
}
}
| 36 |
github-java-corpus | 2,012 | package java.lang;
/**
*
* @author Sven Köhler
*/
public abstract class Enum<E extends Enum<E>> implements Comparable<E>
{
//MISSING implements Serializable
//MISSING public final Class<E> getDeclaringClass()
private int ordinal;
private String name;
protected Enum(String name, int ordinal)
{
this.name... | 395 |
github-java-corpus | 2,012 | package java.lang;
import lejos.nxt.VM;
/**
* All classes extend this one, implicitly.
*/
public class Object
{
/**
* Creates a shallow copy of the supplied Object
* @param old Object to clone
* @return A shallow copy of the Object
*/
private static final native Object cloneObject(Object... | 649 |
github-java-corpus | 2,012 | package java.lang;
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
{
/**
* Constructs an <code>ArrayIndexOutOfBoundsException</code> with no
* detail message.
*/
public ArrayIndexOutOfBoundsException() {
super();
}
/**
* Constructs a new <code>... | 173 |
github-java-corpus | 2,012 | package java.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Deprecated
{
//nothing
}
| 48 |
github-java-corpus | 2,012 | package java.lang;
import java.util.Iterator;
/**
* Interface needed by Java foreach loops. It just provides an Iterator.
*
* @author Sven Köhler
* @param <E> type of the elements
*/
public interface Iterable<E>
{
Iterator<E> iterator();
}
| 59 |
github-java-corpus | 2,012 | package java.lang;
/**
* Wrapper class for long integers.
* @author Sven Köhler
*/
public final class Long extends Number implements Comparable<Long>
{
public static final long MAX_VALUE = 0x7FFFFFFFFFFFFFFFL;
public static final long MIN_VALUE = 0x8000000000000000L;
public static final int SIZE = 64;
// Re... | 3,007 |
github-java-corpus | 2,012 | package java.lang;
public class NegativeArraySizeException extends RuntimeException
{
public NegativeArraySizeException()
{
super();
}
public NegativeArraySizeException(String message)
{
super(message);
}
}
| 44 |
github-java-corpus | 2,012 | package java.lang;
public class InterruptedException extends Exception
{
public InterruptedException()
{
super();
}
public InterruptedException(String message)
{
super(message);
}
}
| 36 |
github-java-corpus | 2,012 | package java.lang;
public class AssertionError extends Error
{
public AssertionError()
{
//FIXME generate proper messages
super("assertion failed");
}
public AssertionError(boolean message)
{
this();
}
public AssertionError(char message)
{
this();
}
public AssertionError(double message)
{
this(... | 118 |
github-java-corpus | 2,012 | package java.lang;
/**
* Wrapper class for booleans.
* @author Sven Köhler
*/
public final class Boolean implements Comparable<Boolean>
{
public static final Boolean FALSE = new Boolean(false);
public static final Boolean TRUE = new Boolean(true);
// References to the following field are automatically replace... | 500 |
github-java-corpus | 2,012 | package java.lang;
/**
* Wrapper class for bytes.
* @author Sven Köhler
*/
public final class Byte extends Number
{
public static final byte MAX_VALUE = 127;
public static final byte MIN_VALUE = -128;
public static final int SIZE = 8;
// References to the following field are automatically replaced with a loa... | 566 |
github-java-corpus | 2,012 | package java.lang;
/**
* Class to allow an object to execute code. This interface should be implemented
* by any class which wishes to allow its instances to execute via a thread.
* <p>
* The implmenting class must define a single method Run which takes no arguments
* and returns nothing. This method will be calle... | 158 |
github-java-corpus | 2,012 | package java.lang;
/**
* Minimal Integer implementation that supports converting an int to a String.
* @author others
* @author Sven Köhler
*/
public final class Integer extends Number implements Comparable<Integer>
{
/**
* The largest value of type <code>int</code>. The constant
* value of this field is <tt... | 3,331 |
github-java-corpus | 2,012 | package java.lang;
/**
* Just some utility methods for the wrapper classes as well as StringBuffer and StringBuilder.
* @author Sven Köhler
*/
class StringUtils
{
private static final int STR_NAN_LEN = 3;
private static final String STR_NAN = "NaN";
private static final int STR_INFINITY_LEN = 8;
private static ... | 5,321 |
github-java-corpus | 2,012 | package java.lang;
public class ClassCastException extends RuntimeException
{
public ClassCastException()
{
super();
}
public ClassCastException(String message)
{
super(message);
}
}
| 39 |
github-java-corpus | 2,012 | package java.lang;
public class NoSuchMethodError extends Error
{
public NoSuchMethodError()
{
super();
}
public NoSuchMethodError(String message)
{
super(message);
}
}
| 42 |
github-java-corpus | 2,012 | package java.lang;
/**
* An uninstantiable placeholder class.
* @author Sven Köhler
*/
public final class Void
{
// References to the following field are automatically replaced with a load
// of the correct value by the linker, so no need to initialize.
public static final Class<?> TYPE = null;
private... | 83 |
github-java-corpus | 2,012 | package java.lang;
public class NumberFormatException extends IllegalArgumentException
{
public NumberFormatException()
{
super();
}
public NumberFormatException(String s)
{
super(s);
}
}
| 38 |
github-java-corpus | 2,012 | package java.lang;
/**
* Minimalist version of the standard Java Runtime class.
* @author Paul Andrews
*/
public class Runtime {
private static Runtime singleton;
/**
* Private so no one but us can create one.
*/
private Runtime()
{
}
/**
* Get the single instance of us.
*/
public static... | 174 |
github-java-corpus | 2,012 | package java.lang;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({
ElementType.TYPE,
ElementType.FIELD,
ElementType.METHOD,
ElementType.PARAMETER,
ElementType.CONSTRUCTOR,
ElementType.LOCAL... | 85 |
github-java-corpus | 2,012 | package java.lang;
public class StackOverflowError extends Error
{
public StackOverflowError()
{
super();
}
public StackOverflowError(String message)
{
super(message);
}
}
| 42 |
github-java-corpus | 2,012 | package java.lang;
public interface CharSequence
{
char charAt(int i);
int length();
CharSequence subSequence(int start, int end);
String toString();
}
| 33 |
github-java-corpus | 2,012 | package java.lang;
/**
* Wrapper class for shorts.
* @author Sven Köhler
*/
public final class Short extends Number
{
public static final short MAX_VALUE = 32767;
public static final short MIN_VALUE = -32768;
public static final int SIZE = 16;
// References to the following field are automatically replaced w... | 611 |
github-java-corpus | 2,012 | package java.lang;
public class OutOfMemoryError extends Error
{
public OutOfMemoryError()
{
super();
}
public OutOfMemoryError(String message)
{
super(message);
}
}
| 45 |
github-java-corpus | 2,012 | package java.lang;
public class UnsupportedOperationException extends RuntimeException
{
public UnsupportedOperationException()
{
super();
}
public UnsupportedOperationException(String s)
{
super(s);
}
}
| 35 |
github-java-corpus | 2,012 | package java.lang;
public class ArithmeticException extends Exception
{
public ArithmeticException()
{
super();
}
public ArithmeticException(String message)
{
super(message);
}
}
| 39 |
github-java-corpus | 2,012 | package java.lang;
/**
* All exceptions and errors extend this class.
*/
public class Throwable
{
private String _message;
public Throwable()
{
//nothing
}
public Throwable(String message)
{
_message = message;
}
public String getMessage()
{
return _message;
}
@Override
public String toString... | 84 |
github-java-corpus | 2,012 | package java.lang;
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
{
public StringIndexOutOfBoundsException() {
super();
}
public StringIndexOutOfBoundsException(int index) {
super("String index out of range: " + index);
}
public StringI... | 66 |
github-java-corpus | 2,012 | package java.lang;
public class NullPointerException extends RuntimeException
{
public NullPointerException()
{
super();
}
public NullPointerException(String message)
{
super(message);
}
}
| 36 |
github-java-corpus | 2,012 | package java.lang;
/**
* An immutable string of characters.
*/
public final class String implements CharSequence
{
// NOTE: The state of this class is mapped to
// native code (see vmsrc/classes.h).
final char[] characters;
//Cache the calculated hash
private int hash = 0;
private String(int len)
... | 3,428 |
github-java-corpus | 2,012 | package java.lang;
public class CloneNotSupportedException extends Exception
{
public CloneNotSupportedException()
{
super();
}
public CloneNotSupportedException(String message)
{
super(message);
}
}
| 38 |
github-java-corpus | 2,012 | package java.lang;
/**
* Superclass for the difference wrapper classes.
* @author Sven Köhler
*/
public abstract class Number
{
//MISSING implements Serializable
/**
* Just a constructor doing nothing.
*/
public Number()
{
//nothing to do
}
/**
* Return the byte value of this Number.
* @return t... | 256 |
github-java-corpus | 2,012 | package java.lang;
public class Exception extends Throwable
{
public Exception() {
super();
}
public Exception(String message) {
super(message);
}
}
| 34 |
github-java-corpus | 2,012 | package java.lang;
public class RuntimeException extends Exception{
/** Constructs a new runtime exception with <code>null</code> as its
* detail message. The cause is not initialized.
*/
public RuntimeException() {
super();
}
/** Constructs a new runtime exception with the specifi... | 119 |
github-java-corpus | 2,012 | package java.lang;
public class NoSuchFieldError extends Error
{
public NoSuchFieldError()
{
super();
}
public NoSuchFieldError(String message)
{
super(message);
}
}
| 41 |
github-java-corpus | 2,012 | package java.lang;
/**
* This is a special Error, which isn't reported by the
* VM if uncaught. The thread dies quietly.
*/
public class ThreadDeath extends Error
{
}
| 40 |
github-java-corpus | 2,012 | package java.lang;
import java.io.PrintStream;
import lejos.nxt.LCDOutputStream;
/**
* System utilities.
*/
public final class System
{
private System() {}
/**
* Copies one array to another.
*/
public static native void arraycopy (Object src, int srcOffset, Object dest, int destOffset, int length);
... | 348 |
github-java-corpus | 2,012 | package java.lang;
import java.util.Random;
/**
* Mathematical functions.
*
* @author <a href="mailto:bbagnall@mst.net">Brian Bagnall</a>
*/
public final class Math
{
// Math constants
public static final double E = 2.71828182845904523536028747135;
public static final double PI = 3.14159265358979323846264338... | 7,048 |
github-java-corpus | 2,012 | package java.lang;
import java.lang.annotation.Annotation;
import lejos.nxt.VM;
/**
* Not fully functional.
*/
public class Class<T>
{
// Note the following fields are mapped on to read only flash entries
// held within the VM. They should not be changed. New fields should not
// be added to this class... | 960 |
github-java-corpus | 2,012 | package java.lang;
public class NoClassDefFoundError extends Error
{
public NoClassDefFoundError()
{
super();
}
public NoClassDefFoundError(String message)
{
super(message);
}
}
| 48 |
github-java-corpus | 2,012 | package java.lang;
/**
* Minimal Float implementation.
*
* @author Lawrie Griffiths
* @author Sven Köhler
*/
public final class Float extends Number
{
public static final float POSITIVE_INFINITY = 1.0f / 0.0f;
public static final float NEGATIVE_INFINITY = -1.0f / 0.0f;
public static final float NaN = 0.0f / 0.... | 1,929 |
github-java-corpus | 2,012 | package java.lang;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
public @interface Override
{
//nothing
}
| 57 |
github-java-corpus | 2,012 | package javax.microedition.io;
import java.io.IOException;
/**
* This class is used to signal that a connection target cannot be found, or the protocol type is not supported.
* @author BB
*
*/
public class ConnectionNotFoundException extends IOException {
/**
* Constructs a ConnectionNotFoundExce... | 112 |
github-java-corpus | 2,012 | package javax.microedition.io;
import java.io.IOException;
public interface Connection {
public void close() throws IOException;
}
| 23 |
github-java-corpus | 2,012 | package javax.microedition.io;
import java.io.*;
import lejos.nxt.comm.*;
/**
* This is a factory class to create different data connections, such as Bluetooth or USB.
* Currently it only supports Bluetooth SPP (btspp://).
* @author BB
*
*/
public class Connector {
/**
* Access mode READ... | 1,319 |
github-java-corpus | 2,012 | package javax.microedition.io;
import java.io.*;
public interface InputConnection extends Connection {
/**
* Open and return a data input stream for a connection.
* @return the data input stream
*/
public DataInputStream openDataInputStream();
/**
* Open and return an input stream for a c... | 83 |
github-java-corpus | 2,012 | package javax.microedition.io;
import java.io.IOException;
public interface StreamConnectionNotifier extends Connection {
/*
* Returns a StreamConnection that represents a server side socket
* connection. Returns: A socket to communicate with a client. Throws:
* IOException ... | 75 |
github-java-corpus | 2,012 | package javax.microedition.io;
/**
*
* This interface defines the capabilities that a stream connection must have.
*
* StreamConnections have one underlying InputStream and one OutputStream.
*
* Opening a DataInputStream counts as opening an InputStream and opening a DataOutputStream counts as opening an Out... | 109 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.