repo_name
stringlengths
7
104
file_path
stringlengths
13
198
context
stringlengths
67
7.15k
import_statement
stringlengths
16
4.43k
code
stringlengths
40
6.98k
prompt
stringlengths
227
8.27k
next_line
stringlengths
8
795
Turbo87/flight-club
core/src/main/java/org/flightclub/Object3d.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Graphics; import java.util.Vector;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; public class Object3d { protected XCGame app = null; final Vec...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public void draw(Graphics g) {
Turbo87/flight-club
core/src/main/java/org/flightclub/Object3d.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Graphics; import java.util.Vector;
} /** use camera to get from 3d to 2d */ void film(CameraMan camera) { Vector3d v; Vector3d v_; inFOV = false; //set true if any points are in FOV for (int i = 0; i < points.size(); i++) { v = points.elementAt(i); v_ = points_.elementAt(i...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public void setColor(Color c) {
Turbo87/flight-club
core/src/main/java/org/flightclub/Surface.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Graphics;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; public class Surface extends PolyLine { final int[] xs; final int[] ys;
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public Surface(Object3d object, int numPoints, Color color) {
Turbo87/flight-club
core/src/main/java/org/flightclub/Surface.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Graphics;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; public class Surface extends PolyLine { final int[] xs; final int[] ys; p...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public void draw(Graphics g) {
Turbo87/flight-club
core/src/main/java/org/flightclub/Glider.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; /** * a glider that sniffs out lift */ public class Glider extends Flyi...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public static final Color TAIL_COLOR = Color.LIGHT_GRAY;
Turbo87/flight-club
core/src/main/java/org/flightclub/FlyingDot.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; /* a dot with a position and velocity. also... - a local coord system ...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public static final Color TAIL_COLOR = Color.LIGHT_GRAY;
Turbo87/flight-club
core/src/main/java/org/flightclub/ModelCanvas.java
// Path: core/src/main/java/org/flightclub/compat/AwtGraphics.java // public class AwtGraphics implements Graphics { // // private final java.awt.Graphics g; // // public AwtGraphics(java.awt.Graphics g) { // this.g = g; // } // // @Override // public void setColor(Color color) { // ...
import org.flightclub.compat.AwtGraphics; import java.awt.Canvas; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdap...
if (mouseTracker.getDeltaY() > 20) dz = delta / 4; if (mouseTracker.getDeltaY() < -20) dz = -delta / 4; app.cameraMan.rotateEyeAboutFocus(-dtheta); app.cameraMan.translateZ(-dz); } repaint(); } @Over...
// Path: core/src/main/java/org/flightclub/compat/AwtGraphics.java // public class AwtGraphics implements Graphics { // // private final java.awt.Graphics g; // // public AwtGraphics(java.awt.Graphics g) { // this.g = g; // } // // @Override // public void setColor(Color color) { // ...
app.draw(new AwtGraphics(g), getWidth(), getHeight());
Turbo87/flight-club
core/src/main/java/org/flightclub/JetTrail.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; /** * a jet in the upper atmosphere - leaves a long trail */ public cla...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public static final Color TAIL_COLOR = new Color(200, 200, 200);
Turbo87/flight-club
core/src/main/java/org/flightclub/GliderUser.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import java.awt.event.KeyEvent;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; /** * a glider that the user may control */ public class GliderUser e...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public static final Color TAIL_COLOR = new Color(120, 120, 120);
Turbo87/flight-club
core/src/main/java/org/flightclub/Compass.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Font; import org.flightclub.compat.Graphics;
*/ float s = (float) (r - 2) / 5; for (int i = 0; i < H_NUM; i++) { hxs[i] = (int) (hxs[i] * s); hys[i] = (int) (hys[i] * -s); } for (int i = 0; i < T_NUM; i++) { txs[i] = (int) (txs[i] * s); tys[i] = (int) (tys[i] * -s...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
public void draw(Graphics g) {
Turbo87/flight-club
core/src/main/java/org/flightclub/Compass.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Font; import org.flightclub.compat.Graphics;
for (int i = 0; i < H_NUM; i++) { hxs[i] = (int) (hxs[i] * s); hys[i] = (int) (hys[i] * -s); } for (int i = 0; i < T_NUM; i++) { txs[i] = (int) (txs[i] * s); tys[i] = (int) (tys[i] * -s); } updateArrow(); } v...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
g.setColor(Color.LIGHT_GRAY);
Turbo87/flight-club
core/src/main/java/org/flightclub/Compass.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import org.flightclub.compat.Font; import org.flightclub.compat.Graphics;
hys[i] = (int) (hys[i] * -s); } for (int i = 0; i < T_NUM; i++) { txs[i] = (int) (txs[i] * s); tys[i] = (int) (tys[i] * -s); } updateArrow(); } void setArrow(float x, float y) { // +y is north // +x is east ...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
Font font = new Font("SansSerif", Font.PLAIN, 10);
Turbo87/flight-club
core/src/main/java/org/flightclub/Hill.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color;
/** This code is covered by the GNU General Public License detailed at http://www.gnu.org/copyleft/gpl.html Flight Club docs located at http://www.danb.dircon.co.uk/hg/hg.htm Dan Burton , Nov 2001 */ package org.flightclub; /** * a spine running parallel to x axis or y axis (orientation 0 or 1) ...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
final Color color;
Turbo87/flight-club
core/src/main/java/org/flightclub/Landscape.java
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
import org.flightclub.compat.Color; import java.util.Vector;
loadFlatLand(t); } tiles[t].loaded = true; } void addFrame(int tile, int x) { //Vector wire; //int y0 = tile * TILE_WIDTH; //int x0 = - TILE_WIDTH/2 + x * TILE_WIDTH; //two cross hairs //crossHair(x0, y0); //crossHair(...
// Path: core/src/main/java/org/flightclub/compat/Color.java // public class Color { // private final java.awt.Color c; // // // /** // * The color white. In the default sRGB space. // */ // public final static Color WHITE = new Color(255, 255, 255); // // /** // * The color light gra...
o.addWire(wire, new Color(230, 230, 230), false, false);
tourettes/libbluray
src/libbluray/bdj/java/org/videolan/media/content/playlist/VideoControl.java
// Path: src/libbluray/bdj/java/org/havi/ui/HScreenRectangle.java // public class HScreenRectangle { // public HScreenRectangle(float x, float y, float width, float height) { // setLocation(x, y); // setSize(width, height); // } // // public void setLocation(float x, float y) { // t...
import java.awt.Component; import java.awt.Dimension; import java.awt.Rectangle; import org.dvb.media.VideoPresentationControl; import org.havi.ui.HScreen; import org.havi.ui.HScreenRectangle; import org.havi.ui.HVideoConfiguration; import org.videolan.StreamInfo;
/* * This file is part of libbluray * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library ...
// Path: src/libbluray/bdj/java/org/havi/ui/HScreenRectangle.java // public class HScreenRectangle { // public HScreenRectangle(float x, float y, float width, float height) { // setLocation(x, y); // setSize(width, height); // } // // public void setLocation(float x, float y) { // t...
protected HScreenRectangle getNormalizedRectangle(Dimension dimension, Rectangle rectangle) {
tourettes/libbluray
src/libbluray/bdj/java/org/bluray/net/BDLocator.java
// Path: src/libbluray/bdj/java/org/davic/net/Locator.java // public class Locator implements javax.tv.locator.Locator { // public Locator(String url) { // this.url = url; // } // // public String toString() { // return url; // } // // public boolean hasMultipleTransformations() { ...
import org.videolan.BDJUtil; import org.videolan.Logger; import org.davic.net.Locator; import org.davic.net.InvalidLocatorException;
secondaryVideoNum = num; url = getUrl(); } } public void setPGTextStreamNumber(int num) { if ((num >= 0) && (num != textStreamNum)) { textStreamNum = num; url = getUrl(); } } protected String getUrl() { String str = "bd://...
// Path: src/libbluray/bdj/java/org/davic/net/Locator.java // public class Locator implements javax.tv.locator.Locator { // public Locator(String url) { // this.url = url; // } // // public String toString() { // return url; // } // // public boolean hasMultipleTransformations() { ...
str += "JAR:" + BDJUtil.makeFiveDigitStr(jar);
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/interpolator/KeyInterpolators.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/ease/Linear.java // public class Linear implements TimelineEase { // @Override // public float map(float durationFraction) { // return durationFraction; // } // // } // // Path: projects/main/src/main/java/libshapedraw/anim...
import java.util.ArrayList; import libshapedraw.animation.trident.ease.Linear; import libshapedraw.animation.trident.ease.TimelineEase;
// original package: org.pushingpixels.trident.interpolator // imported from http://kenai.com/projects/trident/ (version 1.3) /** * Copyright (c) 2006, Sun Microsystems, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/ease/Linear.java // public class Linear implements TimelineEase { // @Override // public float map(float durationFraction) { // return durationFraction; // } // // } // // Path: projects/main/src/main/java/libshapedraw/anim...
this.interpolators.add(new Linear());
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TridentConfig.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
import java.io.*; import java.net.URL; import java.util.*; import libshapedraw.animation.trident.TimelineEngine.TridentAnimationThread; import libshapedraw.animation.trident.interpolator.CorePropertyInterpolators; import libshapedraw.animation.trident.interpolator.PropertyInterpolator; import libshapedraw.animati...
// original package: org.pushingpixels.trident // imported from http://kenai.com/projects/trident/ (version 1.3) /* * Copyright (c) 2005-2010 Trident Kirill Grouchnikov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
private Set<PropertyInterpolator> propertyInterpolators;
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TridentConfig.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
import java.io.*; import java.net.URL; import java.util.*; import libshapedraw.animation.trident.TimelineEngine.TridentAnimationThread; import libshapedraw.animation.trident.interpolator.CorePropertyInterpolators; import libshapedraw.animation.trident.interpolator.PropertyInterpolator; import libshapedraw.animati...
public FixedRatePulseSource(int msDelay) { this.msDelay = msDelay; } @Override public void waitUntilNextPulse() { try { Thread.sleep(this.msDelay); } catch (InterruptedException ie) { ie.printStackTrace(); ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
PropertyInterpolatorSource piSource = new CorePropertyInterpolators();
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TridentConfig.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
import java.io.*; import java.net.URL; import java.util.*; import libshapedraw.animation.trident.TimelineEngine.TridentAnimationThread; import libshapedraw.animation.trident.interpolator.CorePropertyInterpolators; import libshapedraw.animation.trident.interpolator.PropertyInterpolator; import libshapedraw.animati...
public FixedRatePulseSource(int msDelay) { this.msDelay = msDelay; } @Override public void waitUntilNextPulse() { try { Thread.sleep(this.msDelay); } catch (InterruptedException ie) { ie.printStackTrace(); ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
PropertyInterpolatorSource piSource = new CorePropertyInterpolators();
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TridentConfig.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
import java.io.*; import java.net.URL; import java.util.*; import libshapedraw.animation.trident.TimelineEngine.TridentAnimationThread; import libshapedraw.animation.trident.interpolator.CorePropertyInterpolators; import libshapedraw.animation.trident.interpolator.PropertyInterpolator; import libshapedraw.animati...
return null; } public synchronized void addPropertyInterpolator( PropertyInterpolator pInterpolator) { this.propertyInterpolators.add(pInterpolator); } public synchronized void addPropertyInterpolatorSource( PropertyInterpolatorSource pInterpolatorSourc...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java // class TridentAnimationThread extends Thread { // public TridentAnimationThread() { // super(); // this.setName("Trident pulse source thread"); // this.setDaemon(true); // } // // /* //...
TridentAnimationThread current = TimelineEngine.getInstance().animatorThread;
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/ApiInfo.java
// Path: projects/main/src/main/java/libshapedraw/internal/LSDInternalException.java // public class LSDInternalException extends RuntimeException { // private static final long serialVersionUID = 1L; // // public LSDInternalException(String message) { // super(message); // } // // public LSDI...
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.Properties; import libshapedraw.internal.LSDInternalException; import libshapedraw.internal.LSDModDirectory;
return getInstance().name; } public static String getVersion() { return getInstance().version; } public static boolean isVersionAtLeast(String minVersion) { if (minVersion == null) { throw new IllegalArgumentException("minVersion cannot be null"); } re...
// Path: projects/main/src/main/java/libshapedraw/internal/LSDInternalException.java // public class LSDInternalException extends RuntimeException { // private static final long serialVersionUID = 1L; // // public LSDInternalException(String message) { // super(message); // } // // public LSDI...
return LSDModDirectory.DIRECTORY;
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/ApiInfo.java
// Path: projects/main/src/main/java/libshapedraw/internal/LSDInternalException.java // public class LSDInternalException extends RuntimeException { // private static final long serialVersionUID = 1L; // // public LSDInternalException(String message) { // super(message); // } // // public LSDI...
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.Properties; import libshapedraw.internal.LSDInternalException; import libshapedraw.internal.LSDModDirectory;
public static URL getUrlSource() { return getInstance().urlSource; } public static URL getUrlUpdate() { return getInstance().urlUpdate; } public static String getAuthors() { return getInstance().authors; } public static File getModDirectory() { return LSDModDi...
// Path: projects/main/src/main/java/libshapedraw/internal/LSDInternalException.java // public class LSDInternalException extends RuntimeException { // private static final long serialVersionUID = 1L; // // public LSDInternalException(String message) { // super(message); // } // // public LSDI...
throw new LSDInternalException("unable to load resource", e);
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/primitive/LineStyle.java
// Path: projects/main/src/main/java/libshapedraw/shape/XrayShape.java // public interface XrayShape { // public ReadonlyColor getMainColorReadonly(); // // public ReadonlyColor getSecondaryColorReadonly(); // // /** @return true if getSecondaryColorReadonly() is non-null. */ // public boolean isVisib...
import libshapedraw.shape.XrayShape; import org.lwjgl.opengl.GL11;
} /** * Set the line style's main width. * @return the same line style object, modified in-place. */ public LineStyle setMainWidth(float mainWidth) { if (mainWidth < 0) { throw new IllegalArgumentException("line width must be positive"); } this.mainWidth =...
// Path: projects/main/src/main/java/libshapedraw/shape/XrayShape.java // public interface XrayShape { // public ReadonlyColor getMainColorReadonly(); // // public ReadonlyColor getSecondaryColorReadonly(); // // /** @return true if getSecondaryColorReadonly() is non-null. */ // public boolean isVisib...
secondaryColor = mainColor.copy().scaleAlpha(XrayShape.SECONDARY_ALPHA);
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/interpolator/KeyFrames.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/ease/TimelineEase.java // public interface TimelineEase { // public float map(float durationFraction); // }
import libshapedraw.animation.trident.ease.TimelineEase;
// original package: org.pushingpixels.trident.interpolator // imported from http://kenai.com/projects/trident/ (version 1.3) /** * Copyright (c) 2006, Sun Microsystems, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/ease/TimelineEase.java // public interface TimelineEase { // public float map(float durationFraction); // } // Path: projects/main/src/main/java/libshapedraw/animation/trident/interpolator/KeyFrames.java import libshapedraw.animation.trident.ease...
init(keyValues, null, (TimelineEase) null);
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/internal/LSDUpdateCheck.java
// Path: projects/main/src/main/java/libshapedraw/ApiInfo.java // public class ApiInfo { // public static String getName() { // return getInstance().name; // } // public static String getVersion() { // return getInstance().version; // } // public static boolean isVersionAtLeast(Strin...
import libshapedraw.ApiInfo; import libshapedraw.MinecraftAccess;
package libshapedraw.internal; /** * Internal class. Check the remote website for updates. * <p> * The server-side part of this is dead simple: a static text file hosted on a * web server. */ public class LSDUpdateCheck { public class UrlRetriever implements Runnable { @Override public void r...
// Path: projects/main/src/main/java/libshapedraw/ApiInfo.java // public class ApiInfo { // public static String getName() { // return getInstance().name; // } // public static String getVersion() { // return getInstance().version; // } // public static boolean isVersionAtLeast(Strin...
LSDController.getLog().info("update check request: " + ApiInfo.getUrlUpdate());
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/internal/LSDUpdateCheck.java
// Path: projects/main/src/main/java/libshapedraw/ApiInfo.java // public class ApiInfo { // public static String getName() { // return getInstance().name; // } // public static String getVersion() { // return getInstance().version; // } // public static boolean isVersionAtLeast(Strin...
import libshapedraw.ApiInfo; import libshapedraw.MinecraftAccess;
} b.append(lines[i]); } } if (b.length() > 0) { result = b.toString(); } else { // The response was just the version. result = buildOutput(lines[0]); } } ...
// Path: projects/main/src/main/java/libshapedraw/ApiInfo.java // public class ApiInfo { // public static String getName() { // return getInstance().name; // } // public static String getVersion() { // return getInstance().version; // } // public static boolean isVersionAtLeast(Strin...
public void announceResultIfReady(MinecraftAccess minecraftAccess) {
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/callback/TimelineCallbackAdapter.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/Timeline.java // public enum TimelineState { // IDLE(false), READY(false), PLAYING_FORWARD(true), PLAYING_REVERSE(true), SUSPENDED( // false), CANCELLED(false), DONE(false); // // private boolean isActive; // // private ...
import libshapedraw.animation.trident.Timeline.TimelineState;
// original package: org.pushingpixels.trident.callback // imported from http://kenai.com/projects/trident/ (version 1.3) /* * Copyright (c) 2005-2010 Trident Kirill Grouchnikov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/Timeline.java // public enum TimelineState { // IDLE(false), READY(false), PLAYING_FORWARD(true), PLAYING_REVERSE(true), SUSPENDED( // false), CANCELLED(false), DONE(false); // // private boolean isActive; // // private ...
public void onTimelineStateChanged(TimelineState oldState,
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TimelineScenario.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/callback/TimelineScenarioCallback.java // public interface TimelineScenarioCallback { // /** // * Indicates that the all timelines and swing workers in the timeline // * scenario have finished. // */ // public void onTimelin...
import java.util.*; import libshapedraw.animation.trident.callback.TimelineScenarioCallback;
// original package: org.pushingpixels.trident // imported from http://kenai.com/projects/trident/ (version 1.3) /* * Copyright (c) 2005-2010 Trident Kirill Grouchnikov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/callback/TimelineScenarioCallback.java // public interface TimelineScenarioCallback { // /** // * Indicates that the all timelines and swing workers in the timeline // * scenario have finished. // */ // public void onTimelin...
class Chain implements TimelineScenarioCallback {
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/Timeline.java // public enum TimelineState { // IDLE(false), READY(false), PLAYING_FORWARD(true), PLAYING_REVERSE(true), SUSPENDED( // false), CANCELLED(false), DONE(false); // // private boolean isActive; // // private ...
import java.util.*; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import libshapedraw.animation.trident.Timeline.TimelineState; import libshapedraw.animation.trident.TimelineScenario.TimelineScenarioState; import libshapedraw.animation.trident.callback.RunOnUIThread;
long passedSinceLastIteration = (System.currentTimeMillis() - this.lastIterationTimeStamp); if (passedSinceLastIteration < 0) { // ??? passedSinceLastIteration = 0; } if (DEBUG_MODE) { System.out.println("Elapsed since...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/Timeline.java // public enum TimelineState { // IDLE(false), READY(false), PLAYING_FORWARD(true), PLAYING_REVERSE(true), SUSPENDED( // false), CANCELLED(false), DONE(false); // // private boolean isActive; // // private ...
if (timeline.getState() == TimelineState.SUSPENDED)
bencvt/LibShapeDraw
projects/main/src/main/java/libshapedraw/animation/trident/TimelineEngine.java
// Path: projects/main/src/main/java/libshapedraw/animation/trident/Timeline.java // public enum TimelineState { // IDLE(false), READY(false), PLAYING_FORWARD(true), PLAYING_REVERSE(true), SUSPENDED( // false), CANCELLED(false), DONE(false); // // private boolean isActive; // // private ...
import java.util.*; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import libshapedraw.animation.trident.Timeline.TimelineState; import libshapedraw.animation.trident.TimelineScenario.TimelineScenarioState; import libshapedraw.animation.trident.callback.RunOnUIThread;
// + timeline.timelineKind.toString() + " in state " + timeline.getState().name() + " at position " + timeline.durationFraction); } TimelineState oldState = timeline.getState(); ...
// Path: projects/main/src/main/java/libshapedraw/animation/trident/Timeline.java // public enum TimelineState { // IDLE(false), READY(false), PLAYING_FORWARD(true), PLAYING_REVERSE(true), SUSPENDED( // false), CANCELLED(false), DONE(false); // // private boolean isActive; // // private ...
if (scenario.state == TimelineScenarioState.DONE) {
bencvt/LibShapeDraw
projects/main/src/test/java/libshapedraw/TestApiInfo.java
// Path: projects/main/src/main/java/libshapedraw/internal/LSDModDirectory.java // public class LSDModDirectory { // public static final File DIRECTORY = new File(getMinecraftDir(), "mods" + File.separator + ApiInfo.getName()); // // /** // * Use reflection to invoke the static method. This supports both ...
import org.junit.Test; import static org.junit.Assert.*; import java.net.URL; import libshapedraw.internal.LSDModDirectory;
package libshapedraw; public class TestApiInfo extends SetupTestEnvironment.TestCase { @SuppressWarnings("deprecation") @Test public void testStaticMethods() { assertEquals("LibShapeDraw", ApiInfo.getName()); assertFalse(ApiInfo.getVersion().isEmpty()); assertValidHttpUrl(ApiI...
// Path: projects/main/src/main/java/libshapedraw/internal/LSDModDirectory.java // public class LSDModDirectory { // public static final File DIRECTORY = new File(getMinecraftDir(), "mods" + File.separator + ApiInfo.getName()); // // /** // * Use reflection to invoke the static method. This supports both ...
assertEquals(ApiInfo.getModDirectory(), LSDModDirectory.DIRECTORY);
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/http/HttpTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Test; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection;
package org.darkphoenixs.pool.http; public class HttpTest { @Test public void test() throws Exception {
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
PoolConfig config = new PoolConfig();
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/http/HttpConnectionFactory.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionFactory; import java.io.IOException; import java.net.HttpURLConnection; import java.net.InetSocketAddress; import java.net.Prox...
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + HttpConfig.HTTP_URL_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/socket/SocketConnectionFactory.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionFactory; import java.net.InetSocketAddress; import java.net.Socket; import java.util.Properties;
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + SocketConfig.ADDRESS_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/kafka/KafkaConnectionFactory.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import kafka.javaapi.producer.Producer; import kafka.producer.ProducerConfig; import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionFactory; import java.util.Properties;
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + KafkaConfig.BROKERS_LIST_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/jdbc/JdbcConnectionPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.apache.commons.pool2.BasePooledObjectFactory; import org.apache.commons.pool2.PooledObject; import org.darkphoenixs.pool.PoolConfig; import org.junit.Test; import java.sql.Connection; import java.util.Properties;
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
JdbcConnectionPool pool = new JdbcConnectionPool(new PoolConfig(),
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/redis/RedisSentinelConnPool.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
import org.darkphoenixs.pool.ConnectionPool; import org.darkphoenixs.pool.PoolConfig; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisSentinelPool; import java.util.Arrays; import java.util.HashSet; import java.util.Properties; import java.util.Set;
package org.darkphoenixs.pool.redis; /** * <p>Title: RedisSentinelConnPool</p> * <p>Description: Redis哨兵连接池</p> * * @author Victor.Zxy * @version 1.2.3 * @see ConnectionPool * @since 2016 /8/25 */ public class RedisSentinelConnPool implements ConnectionPool<Jedis> { private final JedisSentinelPool pool;...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
this(new PoolConfig(), masterName, sentinels);
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/hbase/HbaseSharedConnPool.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.ConnectionFactory; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionPool; import java.io.IOException; import java.util.Map; import java.util.Proper...
package org.darkphoenixs.pool.hbase; /** * <p>Title: HbaseSharedConnPool</p> * <p>Description: Hbase共享连接池(单例)</p> * * @author Victor.Zxy * @version 1.2.3 * @see ConnectionPool * @since 2016 /8/25 */ public class HbaseSharedConnPool implements ConnectionPool<Connection> { private static final AtomicRefer...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + HbaseConfig.ZOOKEEPER_QUORUM_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/hbase/HbaseConnectionFactory.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.client.Connection; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionFactory; import java.util.Map.En...
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + HbaseConfig.ZOOKEEPER_QUORUM_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/jdbc/JdbcConnectionFactory.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionFactory; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Prope...
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + JdbcConfig.DRIVER_CLASS_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/redis/RedisClusterConnPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.JedisCluster; import java.io.IOException; import java.net.ServerSocket; import java.util.HashSet; import java.util.Properties; import java....
e.printStackTrace(); } } }); th.setDaemon(true); th.start(); } @Test public void test() throws Exception { Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>(); jedisClusterNodes.add(new HostAndPort(RedisCo...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
pool = new RedisClusterConnPool(new PoolConfig(), jedisClusterNodes);
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/redis/RedisConnectionPoolOldTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.Jedis; import java.io.IOException; import java.net.ServerSocket; import java.util.Properties;
} } }); th.setDaemon(true); th.start(); } @Test public void test() throws Exception { try { RedisConnectionPoolOld pool = new RedisConnectionPoolOld( RedisConfig.DEFAULT_HOST, RedisConfig.DEFAULT_PORT); ...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
new PoolConfig(), prop);
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/redis/RedisShardedConnPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.JedisShardInfo; import redis.clients.jedis.ShardedJedis; import java.io.IOException; import java.net.ServerSocket; import java.util.Arrays; import java.util.regex.Pattern;
package org.darkphoenixs.pool.redis; public class RedisShardedConnPoolTest { @Before public void before() throws Exception { Thread th = new Thread(new Runnable() { private ServerSocket serverSocket; @Override public void run() { try { ...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
RedisShardedConnPool pool1 = new RedisShardedConnPool(new PoolConfig(),
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/redis/RedisShardedConnPool.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
import org.darkphoenixs.pool.ConnectionPool; import org.darkphoenixs.pool.PoolConfig; import redis.clients.jedis.JedisShardInfo; import redis.clients.jedis.ShardedJedis; import redis.clients.jedis.ShardedJedisPool; import redis.clients.util.Hashing; import java.util.List; import java.util.regex.Pattern;
package org.darkphoenixs.pool.redis; /** * <p>Title: RedisShardedConnPool</p> * <p>Description: Redis分片连接池</p> * * @author Victor.Zxy * @version 1.2.3 * @see ConnectionPool * @since 2016 /8/25 */ public class RedisShardedConnPool implements ConnectionPool<ShardedJedis> { private final ShardedJedisPool p...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
public RedisShardedConnPool(final PoolConfig poolConfig,
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/redis/RedisClusterConnPool.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
import org.darkphoenixs.pool.ConnectionPool; import org.darkphoenixs.pool.PoolConfig; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.JedisCluster; import java.io.IOException; import java.util.HashSet; import java.util.Properties; import java.util.Set;
package org.darkphoenixs.pool.redis; /** * <p>Title: RedisClusterConnPool</p> * <p>Description: Redis集群连接池</p> * * @author Victor * @version 1.2.4 * @see ConnectionPool * @since 2016 /11/21 */ public class RedisClusterConnPool implements ConnectionPool<JedisCluster> { private final JedisCluster jedisClu...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
this(clusterNodes, connectionTimeout, soTimeout, maxAttempts, new PoolConfig());
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/http/HttpConnectionPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Test; import java.net.Proxy; import java.util.Properties;
package org.darkphoenixs.pool.http; public class HttpConnectionPoolTest { @Test public void test() throws Exception {
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
PoolConfig config = new PoolConfig();
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/hbase/HbaseConnectionPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.apache.hadoop.conf.Configuration; import org.darkphoenixs.pool.PoolConfig; import org.junit.Test; import java.util.Properties;
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
new PoolConfig(), HbaseConfig.DEFAULT_HOST,
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/redis/RedisShardedConnPoolOldTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.apache.commons.pool2.impl.DefaultPooledObject; import org.darkphoenixs.pool.PoolConfig; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.JedisShardInfo; import redis.clients.jedis.ShardedJedis; import redis.clients.util.Hashing; import java.io.IOException; import java.net.ServerSock...
package org.darkphoenixs.pool.redis; public class RedisShardedConnPoolOldTest { @Before public void before() throws Exception { Thread th = new Thread(new Runnable() { private ServerSocket serverSocket; @Override public void run() { try { ...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
RedisShardedConnPoolOld pool = new RedisShardedConnPoolOld(new PoolConfig(),
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/redis/RedisConnectionFactoryOld.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.darkphoenixs.pool.ConnectionException; import org.darkphoenixs.pool.ConnectionFactory; import redis.clients.jedis.BinaryJedis; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.Jedis; impo...
/* * Copyright 2015-2016 Dark Phoenixs (Open-Source Organization). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionException.java // public class ConnectionException extends RuntimeException { // // private static final long serialVersionUID = -6503525110247209484L; // // public ConnectionException() { // super(); // } // // public ConnectionException...
throw new ConnectionException("[" + RedisConfig.ADDRESS_PROPERTY + "] is required !");
DarkPhoenixs/connection-pool-client
src/main/java/org/darkphoenixs/pool/redis/RedisConnectionPool.java
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
import org.darkphoenixs.pool.ConnectionPool; import org.darkphoenixs.pool.PoolConfig; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import java.util.Properties;
package org.darkphoenixs.pool.redis; /** * <p>Title: RedisConnectionPool</p> * <p>Description: Redis连接池</p> * * @author Victor.Zxy * @version 1.2.3 * @see ConnectionPool * @since 2016 /8/25 */ public class RedisConnectionPool implements ConnectionPool<Jedis> { private final JedisPool pool; /** ...
// Path: src/main/java/org/darkphoenixs/pool/ConnectionPool.java // public interface ConnectionPool<T> extends Serializable { // // /** // * <p>Title: getConnection</p> // * <p>Description: 获取连接</p> // * // * @return 连接 // */ // public abstract T getConnection(); // // /** // ...
this(new PoolConfig(), host, port);
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/kafka/KafkaConnectionPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import kafka.producer.ProducerConfig; import org.darkphoenixs.pool.PoolConfig; import org.junit.Test; import java.util.Properties;
prop.setProperty(KafkaConfig.PRODUCER_TYPE_PROPERTY, KafkaConfig.DEFAULT_TYPE); prop.setProperty(KafkaConfig.REQUEST_ACKS_PROPERTY, KafkaConfig.DEFAULT_ACKS); prop.setProperty(KafkaConfig.COMPRESSION_CODEC_PROPERTY, KafkaConfig.DEFAULT_CODEC);...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
KafkaConnectionPool pool = new KafkaConnectionPool(new PoolConfig(), prop);
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/redis/RedisSentinelConnPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisSentinelPool; import java.io.IOException; import java.net.ServerSocket; import java.util.Arrays; import java.util.HashSet; import java.util.Properties;
}); th.setDaemon(true); th.start(); } @Test public void test() throws Exception { try { RedisSentinelConnPool pool = new RedisSentinelConnPool("localhost", new HashSet<String>( Arrays.asList(new String[]{"localhos...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
new PoolConfig(), properties);
DarkPhoenixs/connection-pool-client
src/test/java/org/darkphoenixs/pool/redis/RedisConnectionPoolTest.java
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
import org.darkphoenixs.pool.PoolConfig; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.Jedis; import java.io.IOException; import java.net.ServerSocket; import java.util.Properties;
} } }); th.setDaemon(true); th.start(); } @Test public void test() throws Exception { Properties prop = new Properties(); prop.setProperty(RedisConfig.ADDRESS_PROPERTY, RedisConfig.DEFAULT_HOST + ":" + RedisConfig.DEFAULT...
// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java // public class PoolConfig extends GenericObjectPoolConfig implements Serializable { // // /** // * DEFAULT_TEST_WHILE_IDLE // */ // public static final boolean DEFAULT_TEST_WHILE_IDLE = true; // /** // * DEFAULT_MIN_EVICTABLE_IDLE...
new PoolConfig(), prop);
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/ui/schedule/DialogDatePicker.java
// Path: app/src/ru/bsuirhelper/android/core/StudentCalendar.java // public class StudentCalendar { // private final DateTime mCurrentDateTime; // private static int mDaysOfYear = 0; // private static int mSemester; // // public StudentCalendar() { // mCurrentDateTime = new DateTime(); // ...
import android.app.DatePickerDialog; import android.app.Dialog; import android.content.Context; import android.os.Build; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.widget.DatePicker; import org.joda.time.DateTime; import ru.bsuirhelper.android.core.StudentCalendar; import jav...
package ru.bsuirhelper.android.ui.schedule; /** * Created by Влад on 07.11.13. */ public abstract class DialogDatePicker extends DialogFragment implements OnDateSetListener { private static final String SCHOOL_WEEK = "Учебная неделя "; @Override public Dialog onCreateDialog(Bundle savedInstanceState)...
// Path: app/src/ru/bsuirhelper/android/core/StudentCalendar.java // public class StudentCalendar { // private final DateTime mCurrentDateTime; // private static int mDaysOfYear = 0; // private static int mSemester; // // public StudentCalendar() { // mCurrentDateTime = new DateTime(); // ...
datePickerDialog.getDatePicker().setMinDate(StudentCalendar.getStartStudentYear());
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/ui/DownloadScheduleTask.java
// Path: app/src/ru/bsuirhelper/android/core/schedule/Lesson.java // public class Lesson { // public final HashMap<String, String> fields = new HashMap<String, String>(); // public int id; // // public Lesson() { // fields.put("faculty", ""); // fields.put("year", ""); // fields.put...
import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.support.v4.app.Fragment; import android.widget.Toast; import ru.bsuirhelper.android.core.schedule.Lesson; import ru.bsuirhelper.android.core.schedule.ScheduleManager; import ru.bsuirhelper.android.core.schedul...
package ru.bsuirhelper.android.ui; /** * Created by Влад on 18.02.14. */ public class DownloadScheduleTask extends AsyncTask<String, Integer, String> { private static final String message = "Обновление расписания"; private static final String LIST_URL = "http://www.bsuir.by/psched/rest/"; private stati...
// Path: app/src/ru/bsuirhelper/android/core/schedule/Lesson.java // public class Lesson { // public final HashMap<String, String> fields = new HashMap<String, String>(); // public int id; // // public Lesson() { // fields.put("faculty", ""); // fields.put("year", ""); // fields.put...
private ScheduleManager scheduleManager;
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/ui/DownloadScheduleTask.java
// Path: app/src/ru/bsuirhelper/android/core/schedule/Lesson.java // public class Lesson { // public final HashMap<String, String> fields = new HashMap<String, String>(); // public int id; // // public Lesson() { // fields.put("faculty", ""); // fields.put("year", ""); // fields.put...
import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.support.v4.app.Fragment; import android.widget.Toast; import ru.bsuirhelper.android.core.schedule.Lesson; import ru.bsuirhelper.android.core.schedule.ScheduleManager; import ru.bsuirhelper.android.core.schedul...
while ((count = input.read(data)) != -1) { output.write(data, 0, count); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (output != null) output.close(); if (input != ...
// Path: app/src/ru/bsuirhelper/android/core/schedule/Lesson.java // public class Lesson { // public final HashMap<String, String> fields = new HashMap<String, String>(); // public int id; // // public Lesson() { // fields.put("faculty", ""); // fields.put("year", ""); // fields.put...
ArrayList<Lesson> lessons = ScheduleParser.parseXmlSchedule(xmlFile);
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/ui/DownloadScheduleTask.java
// Path: app/src/ru/bsuirhelper/android/core/schedule/Lesson.java // public class Lesson { // public final HashMap<String, String> fields = new HashMap<String, String>(); // public int id; // // public Lesson() { // fields.put("faculty", ""); // fields.put("year", ""); // fields.put...
import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.support.v4.app.Fragment; import android.widget.Toast; import ru.bsuirhelper.android.core.schedule.Lesson; import ru.bsuirhelper.android.core.schedule.ScheduleManager; import ru.bsuirhelper.android.core.schedul...
while ((count = input.read(data)) != -1) { output.write(data, 0, count); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (output != null) output.close(); if (input != ...
// Path: app/src/ru/bsuirhelper/android/core/schedule/Lesson.java // public class Lesson { // public final HashMap<String, String> fields = new HashMap<String, String>(); // public int id; // // public Lesson() { // fields.put("faculty", ""); // fields.put("year", ""); // fields.put...
ArrayList<Lesson> lessons = ScheduleParser.parseXmlSchedule(xmlFile);
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/core/schedule/ScheduleDatabase.java
// Path: app/src/ru/bsuirhelper/android/core/StudentCalendar.java // public class StudentCalendar { // private final DateTime mCurrentDateTime; // private static int mDaysOfYear = 0; // private static int mSemester; // // public StudentCalendar() { // mCurrentDateTime = new DateTime(); // ...
import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import org.joda.time.DateTime; import org.joda.time.DateTimeConstants; import org.joda.time.format.DateTimeFormat; import ...
} @Override public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i2) { /* sqLiteDatabase.execSQL("DROP TABLE IF EXISTS " + TABLE_COMMENTS); onCreate(sqLiteDatabase); */ } public ArrayList<Lesson> fetchAllLessons(String groupId) { this.open(); ...
// Path: app/src/ru/bsuirhelper/android/core/StudentCalendar.java // public class StudentCalendar { // private final DateTime mCurrentDateTime; // private static int mDaysOfYear = 0; // private static int mSemester; // // public StudentCalendar() { // mCurrentDateTime = new DateTime(); // ...
int workWeek = StudentCalendar.getWorkWeek(dayOfYear);
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/appwidget/ScheduleFactoryViews.java
// Path: app/src/ru/bsuirhelper/android/ApplicationSettings.java // public class ApplicationSettings { // private static ApplicationSettings instance; // private static SharedPreferences settings; // private static final String PREFS_NAME = "settings.txt"; // // private ApplicationSettings(Context cont...
import android.annotation.TargetApi; import android.appwidget.AppWidgetManager; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.widget.RemoteViews; import android.widget.RemoteViewsService; import org.joda.time.DateTime; import ru.bsu...
package ru.bsuirhelper.android.appwidget; /** * Created by Влад on 15.10.13. */ @TargetApi(Build.VERSION_CODES.HONEYCOMB) class ScheduleFactoryViews implements RemoteViewsService.RemoteViewsFactory {
// Path: app/src/ru/bsuirhelper/android/ApplicationSettings.java // public class ApplicationSettings { // private static ApplicationSettings instance; // private static SharedPreferences settings; // private static final String PREFS_NAME = "settings.txt"; // // private ApplicationSettings(Context cont...
private final ScheduleManager mScheduleManager;
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/appwidget/ScheduleFactoryViews.java
// Path: app/src/ru/bsuirhelper/android/ApplicationSettings.java // public class ApplicationSettings { // private static ApplicationSettings instance; // private static SharedPreferences settings; // private static final String PREFS_NAME = "settings.txt"; // // private ApplicationSettings(Context cont...
import android.annotation.TargetApi; import android.appwidget.AppWidgetManager; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.widget.RemoteViews; import android.widget.RemoteViewsService; import org.joda.time.DateTime; import ru.bsu...
package ru.bsuirhelper.android.appwidget; /** * Created by Влад on 15.10.13. */ @TargetApi(Build.VERSION_CODES.HONEYCOMB) class ScheduleFactoryViews implements RemoteViewsService.RemoteViewsFactory { private final ScheduleManager mScheduleManager;
// Path: app/src/ru/bsuirhelper/android/ApplicationSettings.java // public class ApplicationSettings { // private static ApplicationSettings instance; // private static SharedPreferences settings; // private static final String PREFS_NAME = "settings.txt"; // // private ApplicationSettings(Context cont...
private Lesson[] mLessons;
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/appwidget/ScheduleFactoryViews.java
// Path: app/src/ru/bsuirhelper/android/ApplicationSettings.java // public class ApplicationSettings { // private static ApplicationSettings instance; // private static SharedPreferences settings; // private static final String PREFS_NAME = "settings.txt"; // // private ApplicationSettings(Context cont...
import android.annotation.TargetApi; import android.appwidget.AppWidgetManager; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.widget.RemoteViews; import android.widget.RemoteViewsService; import org.joda.time.DateTime; import ru.bsu...
package ru.bsuirhelper.android.appwidget; /** * Created by Влад on 15.10.13. */ @TargetApi(Build.VERSION_CODES.HONEYCOMB) class ScheduleFactoryViews implements RemoteViewsService.RemoteViewsFactory { private final ScheduleManager mScheduleManager; private Lesson[] mLessons; private final Context mContex...
// Path: app/src/ru/bsuirhelper/android/ApplicationSettings.java // public class ApplicationSettings { // private static ApplicationSettings instance; // private static SharedPreferences settings; // private static final String PREFS_NAME = "settings.txt"; // // private ApplicationSettings(Context cont...
private final ApplicationSettings mSettings;
BSUIR-Helper/helper-android
app/src/ru/bsuirhelper/android/core/schedule/ScheduleManager.java
// Path: app/src/ru/bsuirhelper/android/core/StudentCalendar.java // public class StudentCalendar { // private final DateTime mCurrentDateTime; // private static int mDaysOfYear = 0; // private static int mSemester; // // public StudentCalendar() { // mCurrentDateTime = new DateTime(); // ...
import android.content.Context; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import ru.bsuirhelper.android.core.StudentCalendar; import java.util.ArrayList;
package ru.bsuirhelper.android.core.schedule; /** * Created by Влад on 12.09.13. */ public class ScheduleManager { private final ScheduleDatabase mScheduleDatabase;
// Path: app/src/ru/bsuirhelper/android/core/StudentCalendar.java // public class StudentCalendar { // private final DateTime mCurrentDateTime; // private static int mDaysOfYear = 0; // private static int mSemester; // // public StudentCalendar() { // mCurrentDateTime = new DateTime(); // ...
private StudentCalendar mStudentCalendar = new StudentCalendar();
kalessil/yii2inspections
src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/MissingPropertyAnnotationsInspector.java
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/utils/InheritanceChainExtractUtil.java // final public class InheritanceChainExtractUtil { // @NotNull // public static Set<PhpClass> collect(@NotNull PhpClass clazz) { // final Set<PhpClass> processedItems = new HashSet<>(); // //...
import com.intellij.codeInspection.LocalQuickFix; import com.intellij.codeInspection.ProblemDescriptor; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiElement; import com.intellij.psi.Psi...
package com.kalessil.phpStorm.yii2inspections.inspectors; /* * This file is part of the Yii2 Inspections package. * * Author: Vladimir Reznichenko <kalessil@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ final publi...
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/utils/InheritanceChainExtractUtil.java // final public class InheritanceChainExtractUtil { // @NotNull // public static Set<PhpClass> collect(@NotNull PhpClass clazz) { // final Set<PhpClass> processedItems = new HashSet<>(); // //...
final PsiElement nameNode = NamedElementUtil.getNameIdentifier(clazz);
kalessil/yii2inspections
src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/MissingPropertyAnnotationsInspector.java
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/utils/InheritanceChainExtractUtil.java // final public class InheritanceChainExtractUtil { // @NotNull // public static Set<PhpClass> collect(@NotNull PhpClass clazz) { // final Set<PhpClass> processedItems = new HashSet<>(); // //...
import com.intellij.codeInspection.LocalQuickFix; import com.intellij.codeInspection.ProblemDescriptor; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiElement; import com.intellij.psi.Psi...
package com.kalessil.phpStorm.yii2inspections.inspectors; /* * This file is part of the Yii2 Inspections package. * * Author: Vladimir Reznichenko <kalessil@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ final publi...
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/utils/InheritanceChainExtractUtil.java // final public class InheritanceChainExtractUtil { // @NotNull // public static Set<PhpClass> collect(@NotNull PhpClass clazz) { // final Set<PhpClass> processedItems = new HashSet<>(); // //...
final Set<PhpClass> parents = InheritanceChainExtractUtil.collect(clazz);
kalessil/yii2inspections
src/main/java/com/kalessil/phpStorm/yii2inspections/codeInsight/TranslationAutocompleteContributor.java
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/utils/StringLiteralExtractUtil.java // final public class StringLiteralExtractUtil { // @Nullable // private static PsiElement getExpressionTroughParenthesis(@Nullable PsiElement expression) { // if (!(expression instanceof Parenthe...
import com.intellij.codeInsight.completion.*; import com.intellij.codeInsight.lookup.LookupElementBuilder; import com.intellij.openapi.project.Project; import com.intellij.patterns.ElementPattern; import com.intellij.patterns.PlatformPatterns; import com.intellij.psi.PsiElement; import com.intellij.psi.search.GlobalSea...
package com.kalessil.phpStorm.yii2inspections.codeInsight; public class TranslationAutocompleteContributor extends CompletionContributor { public TranslationAutocompleteContributor() { final CompletionProvider<CompletionParameters> provider = new CompletionProvider<CompletionParameters>() { @...
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/inspectors/utils/StringLiteralExtractUtil.java // final public class StringLiteralExtractUtil { // @Nullable // private static PsiElement getExpressionTroughParenthesis(@Nullable PsiElement expression) { // if (!(expression instanceof Parenthe...
categoryLiteral = StringLiteralExtractUtil.resolveAsStringLiteral(arguments[0], true);
kalessil/yii2inspections
src/test/java/com/kalessil/phpStorm/yii2inspections/inspectors/TranslationCallsProcessUtilTest.java
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/utils/TranslationCallsProcessUtil.java // final public class TranslationCallsProcessUtil { // // /* Returns null if category is not clean or empty string literal or no reasonable messages were found*/ // @Nullable // static public ProcessingResul...
import com.intellij.openapi.project.Project; import com.intellij.testFramework.fixtures.CodeInsightFixtureTestCase; import com.jetbrains.php.lang.psi.PhpPsiElementFactory; import com.jetbrains.php.lang.psi.elements.MethodReference; import com.kalessil.phpStorm.yii2inspections.utils.TranslationCallsProcessUtil; import j...
package com.kalessil.phpStorm.yii2inspections.inspectors; public class TranslationCallsProcessUtilTest extends CodeInsightFixtureTestCase { public void testSingleMessageExtraction() { Project project = myFixture.getProject(); Map<String, Integer> patterns = new HashMap<>(); patterns.put(...
// Path: src/main/java/com/kalessil/phpStorm/yii2inspections/utils/TranslationCallsProcessUtil.java // final public class TranslationCallsProcessUtil { // // /* Returns null if category is not clean or empty string literal or no reasonable messages were found*/ // @Nullable // static public ProcessingResul...
TranslationCallsProcessUtil.ProcessingResult messages = TranslationCallsProcessUtil.process(call, false);
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/zxing/camera/CameraManager.java
// Path: app/src/main/java/io/github/marktony/espresso/zxing/camera/open/OpenCameraInterface.java // public class OpenCameraInterface { // // private static final String TAG = OpenCameraInterface.class.getName(); // // /** // * Opens the requested camera with {@link Camera#open(int)}, if one exists. // * // ...
import java.io.IOException; import android.content.Context; import android.graphics.Point; import android.hardware.Camera; import android.hardware.Camera.Size; import android.os.Handler; import android.util.Log; import android.view.SurfaceHolder; import io.github.marktony.espresso.zxing.camera.open.OpenCameraInterface;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/zxing/camera/open/OpenCameraInterface.java // public class OpenCameraInterface { // // private static final String TAG = OpenCameraInterface.class.getName(); // // /** // * Opens the requested camera with {@link Camera#open(int)}, if one exists. // * // ...
theCamera = OpenCameraInterface.open(requestedCameraId);
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companydetails/CompanyDetailFragment.java
// Path: app/src/main/java/io/github/marktony/espresso/customtabs/CustomTabsHelper.java // public class CustomTabsHelper { // // public static void openUrl(Context context, String url) { // SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); // // if (shar...
import android.content.ActivityNotFoundException; import android.content.Intent; import android.graphics.Typeface; import android.net.Uri; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import an...
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_company_details, container, false); initViews(view); fab.setOnClickListener(new View.OnClickLi...
// Path: app/src/main/java/io/github/marktony/espresso/customtabs/CustomTabsHelper.java // public class CustomTabsHelper { // // public static void openUrl(Context context, String url) { // SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); // // if (shar...
CustomTabsHelper.openUrl(getContext(), website);
TonnyL/Espresso
app/src/androidTest/java/io/github/marktony/espresso/about/AboutScreenTest.java
// Path: app/src/main/java/io/github/marktony/espresso/ui/PrefsActivity.java // public class PrefsActivity extends AppCompatActivity { // // public static final String EXTRA_FLAG= "EXTRA_FLAG"; // // public static final int FLAG_SETTINGS = 0, FLAG_ABOUT = 1, FLAG_LICENSES = 2; // // @Override // prot...
import android.content.Context; import android.content.Intent; import android.support.test.InstrumentationRegistry; import android.support.test.filters.SmallTest; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import org.junit.Rule; import org.junit.Test; import org...
package io.github.marktony.espresso.about; /** * Created by lizhaotailang on 2017/5/13. * Tests for the {@link io.github.marktony.espresso.ui.AboutFragment}. */ @RunWith(AndroidJUnit4.class) @SmallTest public class AboutScreenTest { /** * {@link ActivityTestRule} is a JUnit {@link Rule @Rule} to laun...
// Path: app/src/main/java/io/github/marktony/espresso/ui/PrefsActivity.java // public class PrefsActivity extends AppCompatActivity { // // public static final String EXTRA_FLAG= "EXTRA_FLAG"; // // public static final int FLAG_SETTINGS = 0, FLAG_ABOUT = 1, FLAG_LICENSES = 2; // // @Override // prot...
public ActivityTestRule<PrefsActivity> mPrefsActivityTestRule
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/addpackage/AddPackageContract.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
import io.github.marktony.espresso.mvp.BasePresenter; import io.github.marktony.espresso.mvp.BaseView;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
interface Presenter extends BasePresenter {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/app/App.java
// Path: app/src/main/java/io/github/marktony/espresso/util/SettingsUtil.java // public class SettingsUtil { // // public static final String KEY_ALERT = "alert"; // public static final String KEY_DO_NOT_DISTURB_MODE = "do_not_disturb_mode"; // public static final String KEY_DO_NOT_DISTURB_MODE_START_HOUR ...
import android.app.Application; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatDelegate; import io.github.marktony.espresso.util.SettingsUtil; import io.realm.Realm;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/util/SettingsUtil.java // public class SettingsUtil { // // public static final String KEY_ALERT = "alert"; // public static final String KEY_DO_NOT_DISTURB_MODE = "do_not_disturb_mode"; // public static final String KEY_DO_NOT_DISTURB_MODE_START_HOUR ...
if (PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(SettingsUtil.KEY_NIGHT_MODE, false)) {
TonnyL/Espresso
app/src/androidTest/java/io/github/marktony/espresso/settings/SettingsScreenTest.java
// Path: app/src/main/java/io/github/marktony/espresso/ui/PrefsActivity.java // public class PrefsActivity extends AppCompatActivity { // // public static final String EXTRA_FLAG= "EXTRA_FLAG"; // // public static final int FLAG_SETTINGS = 0, FLAG_ABOUT = 1, FLAG_LICENSES = 2; // // @Override // prot...
import android.content.Context; import android.content.Intent; import android.support.test.InstrumentationRegistry; import android.support.test.filters.SmallTest; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import org.junit.Rule; import org.junit.Test; import org...
package io.github.marktony.espresso.settings; /** * Created by lizhaotailang on 2017/5/14. * The tests for {@link io.github.marktony.espresso.ui.SettingsFragment}. */ @RunWith(AndroidJUnit4.class) @SmallTest public class SettingsScreenTest { /** * {@link ActivityTestRule} is a JUnit {@link Rule @Rule...
// Path: app/src/main/java/io/github/marktony/espresso/ui/PrefsActivity.java // public class PrefsActivity extends AppCompatActivity { // // public static final String EXTRA_FLAG= "EXTRA_FLAG"; // // public static final int FLAG_SETTINGS = 0, FLAG_ABOUT = 1, FLAG_LICENSES = 2; // // @Override // prot...
public ActivityTestRule<PrefsActivity> mPrefsActivityTestRule
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/data/source/PackagesRepository.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Package.java // public class Package extends RealmObject { // // public static final int STATUS_FAILED = 2, STATUS_NORMAL = 0, // STATUS_ON_THE_WAY = 5, STATUS_DELIVERED = 3, // STATUS_RETURNED = 4, ...
import io.reactivex.ObservableSource; import io.reactivex.functions.Consumer; import io.reactivex.functions.Function; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; im...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Package.java // public class Package extends RealmObject { // // public static final int STATUS_FAILED = 2, STATUS_NORMAL = 0, // STATUS_ON_THE_WAY = 5, STATUS_DELIVERED = 3, // STATUS_RETURNED = 4, ...
private Map<String, Package> cachedPackages;
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/packages/PackagesContract.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
import android.support.annotation.NonNull; import java.util.List; import io.github.marktony.espresso.mvp.BasePresenter; import io.github.marktony.espresso.mvp.BaseView; import io.github.marktony.espresso.data.Package;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
void showPackages(@NonNull List<Package> list);
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/packages/PackagesContract.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
import android.support.annotation.NonNull; import java.util.List; import io.github.marktony.espresso.mvp.BasePresenter; import io.github.marktony.espresso.mvp.BaseView; import io.github.marktony.espresso.data.Package;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
interface Presenter extends BasePresenter {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/appwidget/AppWidgetProvider.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/packagedetails/PackageDetailsActivity.java // public class PackageDetailsActivity extends AppCompatActivity{ // // private PackageDetailsFragment fragment; // // public static final String PACKAGE_ID = "PACKAGE_ID"; // // @Override // protect...
import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.widget.RemoteViews; import io.github.marktony.espresso.R; import io.github.marktony.espresso.mvp.packag...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/packagedetails/PackageDetailsActivity.java // public class PackageDetailsActivity extends AppCompatActivity{ // // private PackageDetailsFragment fragment; // // public static final String PACKAGE_ID = "PACKAGE_ID"; // // @Override // protect...
Intent tempIntent = new Intent(context, PackageDetailsActivity.class);
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companydetails/CompanyDetailPresenter.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import io.github.marktony.espresso.data.Company; import io.github.marktony.espresso.data.source.CompaniesRepository; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; impor...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
private CompaniesRepository companiesRepository;
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companydetails/CompanyDetailPresenter.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import io.github.marktony.espresso.data.Company; import io.github.marktony.espresso.data.source.CompaniesRepository; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; impor...
private String companyId; @NonNull private CompositeDisposable compositeDisposable; public CompanyDetailPresenter(@NonNull CompanyDetailContract.View view, @NonNull CompaniesRepository companiesRepository, @NonNull String companyId) {...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
.subscribeWith(new DisposableObserver<Company>() {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/ui/AboutFragment.java
// Path: app/src/main/java/io/github/marktony/espresso/customtabs/CustomTabsHelper.java // public class CustomTabsHelper { // // public static void openUrl(Context context, String url) { // SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); // // if (shar...
import io.github.marktony.espresso.customtabs.CustomTabsHelper; import static android.content.Context.CLIPBOARD_SERVICE; import android.content.ActivityNotFoundException; import android.content.ClipData; import android.content.ClipboardManager; import android.content.DialogInterface; import android.content.Intent; impo...
@Override public boolean onPreferenceClick(Preference preference) { try { Uri uri = Uri.parse("market://details?id=" + getActivity().getPackageName()); Intent intent = new Intent(Intent.ACTION_VIEW,uri); intent.addFlags(...
// Path: app/src/main/java/io/github/marktony/espresso/customtabs/CustomTabsHelper.java // public class CustomTabsHelper { // // public static void openUrl(Context context, String url) { // SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); // // if (shar...
CustomTabsHelper.openUrl(getContext(), getString(R.string.thanks_1_url));
TonnyL/Espresso
app/src/androidTest/java/io/github/marktony/espresso/addpackage/AddPackageScreenTest.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/addpackage/AddPackageActivity.java // public class AddPackageActivity extends AppCompatActivity { // // private AddPackageFragment fragment; // // @Override // protected void onCreate(@Nullable Bundle savedInstanceState) { // super.onCreat...
import android.os.Build; import android.support.test.espresso.matcher.ViewMatchers; import android.support.test.filters.LargeTest; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit....
package io.github.marktony.espresso.addpackage; /** * Created by lizhaotailang on 2017/5/14. * Tests the components of {@link AddPackageActivity} layout. */ @RunWith(AndroidJUnit4.class) @LargeTest public class AddPackageScreenTest { private String validPackageNumber; private String invalidPackageNumb...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/addpackage/AddPackageActivity.java // public class AddPackageActivity extends AppCompatActivity { // // private AddPackageFragment fragment; // // @Override // protected void onCreate(@Nullable Bundle savedInstanceState) { // super.onCreat...
public ActivityTestRule<AddPackageActivity> mAddPackageActivityTestRule
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/component/FastScroller.java
// Path: app/src/main/java/io/github/marktony/espresso/interfaze/OnFastScrollStateChangeListener.java // public interface OnFastScrollStateChangeListener { // // /** // * Called when fast scrolling begins // */ // void onFastScrollStart(); // // /** // * Called when fast scrolling ends // ...
import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.graphic...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/interfaze/OnFastScrollStateChangeListener.java // public interface OnFastScrollStateChangeListener { // // /** // * Called when fast scrolling begins // */ // void onFastScrollStart(); // // /** // * Called when fast scrolling ends // ...
mThumbHeight = DensityUtil.dip2px(context, 48);
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/component/FastScroller.java
// Path: app/src/main/java/io/github/marktony/espresso/interfaze/OnFastScrollStateChangeListener.java // public interface OnFastScrollStateChangeListener { // // /** // * Called when fast scrolling begins // */ // void onFastScrollStart(); // // /** // * Called when fast scrolling ends // ...
import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.graphic...
mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); show(); } }); if (mAutoHideEnabled) {...
// Path: app/src/main/java/io/github/marktony/espresso/interfaze/OnFastScrollStateChangeListener.java // public interface OnFastScrollStateChangeListener { // // /** // * Called when fast scrolling begins // */ // void onFastScrollStart(); // // /** // * Called when fast scrolling ends // ...
OnFastScrollStateChangeListener stateChangeListener) {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/data/source/local/CompaniesLocalDataSource.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import android.support.annotation.Nullable; import java.util.List; import io.github.marktony.espresso.data.Company; import io.github.marktony.espresso.data.source.CompaniesDataSource; import io.github.marktony.espresso.realm.RealmHelper; import io.reactivex.Observable; import ...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
public Observable<List<Company>> getCompanies() {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/data/source/local/CompaniesLocalDataSource.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import android.support.annotation.Nullable; import java.util.List; import io.github.marktony.espresso.data.Company; import io.github.marktony.espresso.data.source.CompaniesDataSource; import io.github.marktony.espresso.realm.RealmHelper; import io.reactivex.Observable; import ...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
Realm rlm = RealmHelper.newRealmInstance();
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/component/FastScrollRecyclerView.java
// Path: app/src/main/java/io/github/marktony/espresso/interfaze/OnFastScrollStateChangeListener.java // public interface OnFastScrollStateChangeListener { // // /** // * Called when fast scrolling begins // */ // void onFastScrollStart(); // // /** // * Called when fast scrolling ends // ...
import android.content.Context; import android.graphics.Canvas; import android.graphics.Typeface; import android.support.annotation.ColorInt; import android.support.annotation.NonNull; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.wid...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/interfaze/OnFastScrollStateChangeListener.java // public interface OnFastScrollStateChangeListener { // // /** // * Called when fast scrolling begins // */ // void onFastScrollStart(); // // /** // * Called when fast scrolling ends // ...
private OnFastScrollStateChangeListener mStateChangeListener;
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companydetails/CompanyDetailContract.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
import java.util.List; import io.github.marktony.espresso.mvp.BasePresenter; import io.github.marktony.espresso.mvp.BaseView;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
interface Presenter extends BasePresenter {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companies/CompaniesContract.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
import java.util.ArrayList; import java.util.List; import io.github.marktony.espresso.mvp.BasePresenter; import io.github.marktony.espresso.mvp.BaseView; import io.github.marktony.espresso.data.Company;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
void showCompanies(List<Company> list);
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companies/CompaniesContract.java
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
import java.util.ArrayList; import java.util.List; import io.github.marktony.espresso.mvp.BasePresenter; import io.github.marktony.espresso.mvp.BaseView; import io.github.marktony.espresso.data.Company;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/mvp/BasePresenter.java // public interface BasePresenter { // // void subscribe(); // // void unsubscribe(); // // } // // Path: app/src/main/java/io/github/marktony/espresso/mvp/BaseView.java // public interface BaseView<T> { // // void initViews(...
interface Presenter extends BasePresenter {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/packages/PackagesAdapter.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Package.java // public class Package extends RealmObject { // // public static final int STATUS_FAILED = 2, STATUS_NORMAL = 0, // STATUS_ON_THE_WAY = 5, STATUS_DELIVERED = 3, // STATUS_RETURNED = 4, ...
import java.util.List; import de.hdodenhof.circleimageview.CircleImageView; import io.github.marktony.espresso.R; import io.github.marktony.espresso.data.Package; import io.github.marktony.espresso.interfaze.OnRecyclerViewItemClickListener; import android.content.Context; import android.graphics.Typeface; import androi...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Package.java // public class Package extends RealmObject { // // public static final int STATUS_FAILED = 2, STATUS_NORMAL = 0, // STATUS_ON_THE_WAY = 5, STATUS_DELIVERED = 3, // STATUS_RETURNED = 4, ...
private List<Package> list;
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/packages/PackagesAdapter.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Package.java // public class Package extends RealmObject { // // public static final int STATUS_FAILED = 2, STATUS_NORMAL = 0, // STATUS_ON_THE_WAY = 5, STATUS_DELIVERED = 3, // STATUS_RETURNED = 4, ...
import java.util.List; import de.hdodenhof.circleimageview.CircleImageView; import io.github.marktony.espresso.R; import io.github.marktony.espresso.data.Package; import io.github.marktony.espresso.interfaze.OnRecyclerViewItemClickListener; import android.content.Context; import android.graphics.Typeface; import androi...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Package.java // public class Package extends RealmObject { // // public static final int STATUS_FAILED = 2, STATUS_NORMAL = 0, // STATUS_ON_THE_WAY = 5, STATUS_DELIVERED = 3, // STATUS_RETURNED = 4, ...
private OnRecyclerViewItemClickListener listener;
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/data/source/CompaniesRepository.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import android.support.annotation.Nullable; import java.util.List; import io.github.marktony.espresso.data.Company; import io.reactivex.Observable;
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
public Observable<List<Company>> getCompanies() {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/customtabs/CustomTabsHelper.java
// Path: app/src/main/java/io/github/marktony/espresso/util/SettingsUtil.java // public class SettingsUtil { // // public static final String KEY_ALERT = "alert"; // public static final String KEY_DO_NOT_DISTURB_MODE = "do_not_disturb_mode"; // public static final String KEY_DO_NOT_DISTURB_MODE_START_HOUR ...
import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.preference.PreferenceManager; import android.support.customtabs.CustomTabsIntent; import android.support.v4.content.ContextCom...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/util/SettingsUtil.java // public class SettingsUtil { // // public static final String KEY_ALERT = "alert"; // public static final String KEY_DO_NOT_DISTURB_MODE = "do_not_disturb_mode"; // public static final String KEY_DO_NOT_DISTURB_MODE_START_HOUR ...
if (sharedPreferences.getBoolean(SettingsUtil.KEY_CUSTOM_TABS, true)) {
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/component/FastScrollPopup.java
// Path: app/src/main/java/io/github/marktony/espresso/util/DensityUtil.java // public class DensityUtil { // // public static int getScreenHeight(Context context) { // DisplayMetrics displayMetrics = new DisplayMetrics(); // ((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(di...
import android.animation.ObjectAnimator; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.Typeface; import android.text.TextUtils; import android.view.Vi...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/util/DensityUtil.java // public class DensityUtil { // // public static int getScreenHeight(Context context) { // DisplayMetrics displayMetrics = new DisplayMetrics(); // ((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(di...
setTextSize(DensityUtil.dip2sp(recyclerView.getContext(),56));
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companies/CompaniesPresenter.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import java.util.List; import io.github.marktony.espresso.data.Company; import io.github.marktony.espresso.data.source.CompaniesRepository; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.dispos...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
private CompaniesRepository companiesRepository;
TonnyL/Espresso
app/src/main/java/io/github/marktony/espresso/mvp/companies/CompaniesPresenter.java
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
import android.support.annotation.NonNull; import java.util.List; import io.github.marktony.espresso.data.Company; import io.github.marktony.espresso.data.source.CompaniesRepository; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.dispos...
/* * Copyright(c) 2017 lizhaotailang * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: app/src/main/java/io/github/marktony/espresso/data/Company.java // public class Company extends RealmObject { // // @Expose // @SerializedName("name") // private String name; // // @PrimaryKey // @Expose // @SerializedName("id") // private String id; // // @Expose // @Ser...
.subscribeWith(new DisposableObserver<List<Company>>() {
psiegman/ehcachetag
ehcachetag/src/main/java/nl/siegmann/ehcachetag/CacheTag.java
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/cachetagmodifier/CacheTagModifier.java // public interface CacheTagModifier { // // /** // * CacheTagInterceptor that does not do anything. // * // */ // CacheTagModifier NULL_CACHETAG_MODIFIER = new CacheTagModifier() { // // @Override // public...
import java.io.IOException; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import javax.servlet.jsp.tagext.Tag; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Ehcache; import net.sf.ehca...
// set cacheKey to null so that the endTag knows // it does not have to store anything in the cache key = null; result = BodyTagSupport.SKIP_BODY; } return result; } /** * Internal exception that is used in case a modifier is search for but not found. * * @author paul * */ static ...
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/cachetagmodifier/CacheTagModifier.java // public interface CacheTagModifier { // // /** // * CacheTagInterceptor that does not do anything. // * // */ // CacheTagModifier NULL_CACHETAG_MODIFIER = new CacheTagModifier() { // // @Override // public...
CacheTagModifierFactory cacheTagModifierFactory = getCacheTagModifierFactory();
psiegman/ehcachetag
ehcachetag/src/main/java/nl/siegmann/ehcachetag/CacheTag.java
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/cachetagmodifier/CacheTagModifier.java // public interface CacheTagModifier { // // /** // * CacheTagInterceptor that does not do anything. // * // */ // CacheTagModifier NULL_CACHETAG_MODIFIER = new CacheTagModifier() { // // @Override // public...
import java.io.IOException; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import javax.servlet.jsp.tagext.Tag; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Ehcache; import net.sf.ehca...
} return result; } /** * Internal exception that is used in case a modifier is search for but not found. * * @author paul * */ static final class ModifierNotFoundException extends Exception { private static final long serialVersionUID = 4535024464306691589L; public ModifierNotFoundException(Str...
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/cachetagmodifier/CacheTagModifier.java // public interface CacheTagModifier { // // /** // * CacheTagInterceptor that does not do anything. // * // */ // CacheTagModifier NULL_CACHETAG_MODIFIER = new CacheTagModifier() { // // @Override // public...
CacheTagModifier cacheTagModifier = getCacheTagModifier(cacheTagModifierFactory, modifierName);
psiegman/ehcachetag
ehcachetag/src/test/java/nl/siegmann/ehcachetag/CacheTagTest.java
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/CacheTag.java // static final class ModifierNotFoundException extends Exception { // // private static final long serialVersionUID = 4535024464306691589L; // // public ModifierNotFoundException(String message) { // super(message); // } // } // // Path: eh...
import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspContext; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.PageContext; import javax.servlet.j...
package nl.siegmann.ehcachetag; public class CacheTagTest { @Mock private PageContext pageContext; @Mock private ServletContext servletContext; @Mock private JspWriter jspWriter = Mockito.mock(JspWriter.class); @Mock
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/CacheTag.java // static final class ModifierNotFoundException extends Exception { // // private static final long serialVersionUID = 4535024464306691589L; // // public ModifierNotFoundException(String message) { // super(message); // } // } // // Path: eh...
private CacheTagModifierFactory cacheTagModifierFactory;
psiegman/ehcachetag
ehcachetag/src/test/java/nl/siegmann/ehcachetag/CacheTagTest.java
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/CacheTag.java // static final class ModifierNotFoundException extends Exception { // // private static final long serialVersionUID = 4535024464306691589L; // // public ModifierNotFoundException(String message) { // super(message); // } // } // // Path: eh...
import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspContext; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.PageContext; import javax.servlet.j...
package nl.siegmann.ehcachetag; public class CacheTagTest { @Mock private PageContext pageContext; @Mock private ServletContext servletContext; @Mock private JspWriter jspWriter = Mockito.mock(JspWriter.class); @Mock private CacheTagModifierFactory cacheTagModifierFactory; @Mock
// Path: ehcachetag/src/main/java/nl/siegmann/ehcachetag/CacheTag.java // static final class ModifierNotFoundException extends Exception { // // private static final long serialVersionUID = 4535024464306691589L; // // public ModifierNotFoundException(String message) { // super(message); // } // } // // Path: eh...
private CacheTagModifier cacheTagModifier;