Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.enragedginger.stephenerialization.benching;
  
  
A Stephenerializable Pojo for benchmarks.

Author(s):
Stephen Hopper
 
 @Stephenerializable(version=20121211)
 public class StephenerializablePojo implements BasicPojo {
 	
 	private static final long serialVersionUID = 1L;
 
 	@Stephenerialize(minVersion=20121211, priority=1)
 	private boolean someBoolean;
 	@Stephenerialize(minVersion=20121211, priority=2)
 	private int someInt;
 	@Stephenerialize(minVersion=20121211, priority=3)
 	private long someLong;
 	@Stephenerialize(minVersion=20121211, priority=4)
 	private float someFloat;
 	@Stephenerialize(minVersion=20121211, priority=5)
 	private double someDouble;

Returns:
the someBoolean
 
 	public boolean isSomeBoolean() {
 		return ;
 	}

Parameters:
someBoolean the someBoolean to set
 
 	public void setSomeBoolean(boolean someBoolean) {
 		this. = someBoolean;
 	}

Returns:
the someInt
 
 	public int getSomeInt() {
 		return ;
 	}

Parameters:
someInt the someInt to set
 
 	public void setSomeInt(int someInt) {
 		this. = someInt;
 	}

Returns:
the someLong
 
 	public long getSomeLong() {
 		return ;
 	}

Parameters:
someLong the someLong to set
 
 	public void setSomeLong(long someLong) {
 		this. = someLong;
 	}

Returns:
the someFloat
 
 	public float getSomeFloat() {
 		return ;
 	}

Parameters:
someFloat the someFloat to set
 
 	public void setSomeFloat(float someFloat) {
 		this. = someFloat;
 	}

Returns:
the someDouble
 
 	public double getSomeDouble() {
 		return ;
 	}

Parameters:
someDouble the someDouble to set
 
 	public void setSomeDouble(double someDouble) {
 		this. = someDouble;
 	}

Writes this object out to the stream using Stephenerialization.

Parameters:
streamer The output stream to use.
 
 	private void writeObject(ObjectOutputStream streamer) {
 		final StephenerializationService service = StephenerializationLookupService.lookup();
 		service.stephenerialize(thisstreamerStephenerializablePojo.class);
	}

Reads this object from the stream using Stephenerialization.

Parameters:
streamer The input stream to use.
	private void readObject(ObjectInputStream streamer) {
		final StephenerializationService service = StephenerializationLookupService.lookup();
		service.destephenerialize(thisstreamerStephenerializablePojo.class);
	}
New to GrepCode? Check out our FAQ X