001 package com.croftsoft.apps.mars; 002 003 import java.io.Serializable; 004 005 /********************************************************************* 006 * Persistent user data. 007 * 008 * @version 009 * 2003-04-18 010 * @since 011 * 2003-04-02 012 * @author 013 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 014 *********************************************************************/ 015 016 public final class UserData 017 implements Serializable 018 ////////////////////////////////////////////////////////////////////// 019 ////////////////////////////////////////////////////////////////////// 020 { 021 022 private static final long serialVersionUID = 0L; 023 024 // 025 026 private static final boolean MUTED_DEFAULT = false; 027 028 // 029 030 private boolean muted; 031 032 ////////////////////////////////////////////////////////////////////// 033 ////////////////////////////////////////////////////////////////////// 034 035 public UserData ( boolean muted ) 036 ////////////////////////////////////////////////////////////////////// 037 { 038 this.muted = muted; 039 } 040 041 public UserData ( ) 042 ////////////////////////////////////////////////////////////////////// 043 { 044 this ( MUTED_DEFAULT ); 045 } 046 047 ////////////////////////////////////////////////////////////////////// 048 ////////////////////////////////////////////////////////////////////// 049 050 public boolean isMuted ( ) { return muted; } 051 052 ////////////////////////////////////////////////////////////////////// 053 ////////////////////////////////////////////////////////////////////// 054 055 public void setMuted ( boolean muted ) { this.muted = muted; } 056 057 ////////////////////////////////////////////////////////////////////// 058 ////////////////////////////////////////////////////////////////////// 059 }