FileDocCategorySizeDatePackage
HitBean.javaAPI DocExample799Mon Mar 01 16:01:12 GMT 2004com.develop.ss.search

HitBean

public class HitBean extends Object implements Serializable

Fields Summary
public final String
url
public final String
title
public final float
score
private static NumberFormat
nf
Constructors Summary
public HitBean(String url, String summary, float score)

    nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
  
    this.url = url;
    this.title = summary;
    this.score = score;
  
Methods Summary
public floatgetScore()

    return score;
  
public java.lang.StringgetScoreAsString()

    return nf.format(getScore());
  
public java.lang.StringgetTitle()

    return title;
  
public java.lang.StringgetUrl()

    return url;