View Single Post
  #1 (permalink)  
Old 03-03-2008, 01:47 PM
eragon27 eragon27 is offline
Member
 
Join Date: Mar 2008
Posts: 1
eragon27 is on a distinguished road
Hi! Pls help me with this
Hi Everybody!

I'm just a newbie here at Java forums as well as I'm just also learning Java right now.

Do you know resources online or books as my reference while I'm just learning java.

Also, Can you help me with this?? Thank you very much.. Any suggestions??




package com.jds.architecture.utilities;

/**
* Validation strategy object used to determine if the class types of two argument
* objects are the same, using the Object.getClass() method.
*
* The overriden method <code>validate(Object target)</code> accepts an array of 2
* Objects to represent the objects to be validated. Any other elements of the array
* will be ignored. RuntimeExceptions will be thrown when any other argument is passed to
* the method.
*
* Classes that implement the <code>ValidationStrategy</code> interface should be
* passed to <code>Validator</code> objects via their constructor or to the
* <code>Validator.validate(ValidationStrategy, Object)</code> method
*
*
* @author Eugene P. Lozada, Arthur D. Gerona
* @see Validator
* @see ValidationStrategy
*/
public class ClassTypeIsSame implements ValidationStrategy {

/**
* Determines if the pair of objects contained in the array is of the same class
*
* @param target array of objects. The array can contain nulls.
* @return returns true if the objects contained in the array are ofthe same class,
* false otherwise
*
*/
public boolean validate(Object target) {

//Get arguments arra
return false;
}
}
Reply With Quote
Sponsored Links